Skip to content

Commit

Permalink
use dedicated thread
Browse files Browse the repository at this point in the history
  • Loading branch information
MadSchemas committed Feb 16, 2024
1 parent d3b81e1 commit 81ec629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp_src/cluster/raftmanager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ RaftManager::DesiredLeaderIdSender::DesiredLeaderIdSender(net::ev::dynamic_loop&
rpcCfg.AppName = "raft_manager_tmp";
rpcCfg.NetTimeout = kRaftTimeout;
rpcCfg.EnableCompression = false;
rpcCfg.RequestDedicatedThread = false; // No dedicated threads required for the leader switch command
rpcCfg.RequestDedicatedThread = true
clients_.reserve(nodes_.size());
for (size_t i = 0; i < nodes_.size(); ++i) {
auto& client = clients_.emplace_back(rpcCfg);
Expand Down

0 comments on commit 81ec629

Please sign in to comment.