Skip to content

Commit b34d7a0

Browse files
committed
Increase buffer size for raft msgs
1 parent 72ec5fe commit b34d7a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

block/internal/syncing/raft_retriever.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func (r *raftRetriever) Start(ctx context.Context) error {
5555
return errors.New("syncer already started")
5656
}
5757
ctx, r.cancel = context.WithCancel(ctx)
58-
applyCh := make(chan raft.RaftApplyMsg)
58+
applyCh := make(chan raft.RaftApplyMsg, 1)
5959
r.raftNode.SetApplyCallback(applyCh)
6060

6161
r.wg.Add(1)

0 commit comments

Comments
 (0)