leave some time for finalCommit

pull/3453/head
Rongjian Lan 4 years ago
parent a71d8f48f7
commit 2cc6d17a6f
  1. 2
      consensus/leader.go

@ -305,7 +305,7 @@ func (consensus *Consensus) onCommit(msg *msg_pb.Message) {
go func(viewID uint64) {
waitTime := 1000 * time.Millisecond
maxWaitTime := time.Until(consensus.NextBlockDue) - 100*time.Millisecond
maxWaitTime := time.Until(consensus.NextBlockDue) - 200*time.Millisecond
if maxWaitTime > waitTime {
waitTime = maxWaitTime
}

Loading…
Cancel
Save