Skip to content

Commit

Permalink
dummy server start with bthread self tag
Browse files Browse the repository at this point in the history
  • Loading branch information
yanglimingcn committed Apr 23, 2024
1 parent dd47436 commit 53b9e6e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/brpc/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1889,6 +1889,7 @@ int StartDummyServerAt(int port, ProfilerLinker) {
"DummyServerOf(%s)", GetProgramName()));
ServerOptions options;
options.num_threads = 0;
options.bthread_tag = bthread_self_tag();
if (dummy_server->Start(port, &options) != 0) {
LOG(ERROR) << "Fail to start dummy_server at port=" << port;
return -1;
Expand Down

0 comments on commit 53b9e6e

Please sign in to comment.