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 authored and Brian Kassouf committed Apr 4, 2020
1 parent d3edd97 commit db2cfed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion physical/raft/raft.go
Original file line number Diff line number Diff line change
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 db2cfed

Please sign in to comment.