MCPcopy Create free account
hub / github.com/baidu/braft / write

Method write

example/block/server.cpp:445–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

443public:
444 explicit BlockServiceImpl(Block* block) : _block(block) {}
445 void write(::google::protobuf::RpcController* controller,
446 const ::example::BlockRequest* request,
447 ::example::BlockResponse* response,
448 ::google::protobuf::Closure* done) {
449 brpc::Controller* cntl = (brpc::Controller*)controller;
450 return _block->write(request, response,
451 &cntl->request_attachment(), done);
452 }
453 void read(::google::protobuf::RpcController* controller,
454 const ::example::BlockRequest* request,
455 ::example::BlockResponse* response,

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected