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

Method Run

example/block/server.cpp:429–439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

427};
428
429void BlockClosure::Run() {
430 // Auto delete this after Run()
431 std::unique_ptr<BlockClosure> self_guard(this);
432 // Repsond this RPC.
433 brpc::ClosureGuard done_guard(_done);
434 if (status().ok()) {
435 return;
436 }
437 // Try redirect if this request failed.
438 _block->redirect(_response);
439}
440
441// Implements example::BlockService if you are using brpc.
442class BlockServiceImpl : public BlockService {

Callers

nothing calls this directly

Calls 1

redirectMethod · 0.45

Tested by

no test coverage detected