We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f23cb0 commit 77b52acCopy full SHA for 77b52ac
1 file changed
conn/node.go
@@ -376,7 +376,9 @@ func (n *Node) streamMessages(to uint64, stream *Stream) {
376
defer atomic.StoreInt32(&stream.alive, 0)
377
378
// Exit after this deadline. Let BatchAndSendMessages create another goroutine, if needed.
379
- deadline := time.Now().Add(60 * time.Second)
+ // Let's set the deadline to 10s because if we increase it, then it takes longer to recover from
380
+ // a partition and get a new leader.
381
+ deadline := time.Now().Add(10 * time.Second)
382
ticker := time.NewTicker(time.Second)
383
defer ticker.Stop()
384
0 commit comments