Skip to content

Commit

Permalink
storage/raft: Buffer leader notify channel more aggresively (#8650) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
briankassouf committed Apr 1, 2020
1 parent c86449b commit f8acb13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion physical/raft/raft.go
Expand Up @@ -522,7 +522,7 @@ func (b *RaftBackend) SetupCluster(ctx context.Context, opts SetupOpts) error {
raftConfig.LocalID = raft.ServerID(b.localID)

// Set up a channel for reliable leader notifications.
raftNotifyCh := make(chan bool, 1)
raftNotifyCh := make(chan bool, 10)
raftConfig.NotifyCh = raftNotifyCh

// If we have a bootstrapConfig set we should bootstrap now.
Expand Down

0 comments on commit f8acb13

Please sign in to comment.