| 443 | public: |
| 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, |