Skip to content

Commit

Permalink
Decrease RaftMessageSender queue size back to 128
Browse files Browse the repository at this point in the history
Bigger queue size is not required if batching enabled
  • Loading branch information
ffuugoo committed Apr 25, 2024
1 parent add4a3c commit 997566f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/consensus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ impl RaftMessageBroker {
}

fn message_sender(&self) -> (RaftMessageSender, RaftMessageSenderHandle) {
let (messages_tx, messages_rx) = tokio::sync::mpsc::channel(256);
let (messages_tx, messages_rx) = tokio::sync::mpsc::channel(128);
let (heartbeat_tx, heartbeat_rx) = tokio::sync::watch::channel(Default::default());

let task = RaftMessageSender {
Expand Down

0 comments on commit 997566f

Please sign in to comment.