From 67e2985a826deb6ae8d3a825ba12a76df0611256 Mon Sep 17 00:00:00 2001 From: Rongjian Lan Date: Fri, 6 Nov 2020 11:42:56 -0800 Subject: [PATCH] shorten leader waiting time --- consensus/leader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consensus/leader.go b/consensus/leader.go index 664054383..9c5d24c9e 100644 --- a/consensus/leader.go +++ b/consensus/leader.go @@ -310,7 +310,7 @@ func (consensus *Consensus) onCommit(msg *msg_pb.Message) { consensus.getLogger().Info().Msg("[OnCommit] Starting Grace Period") go func(viewID uint64) { - time.Sleep(2500 * time.Millisecond) + time.Sleep(1000 * time.Millisecond) logger.Info().Msg("[OnCommit] Commit Grace Period Ended") consensus.commitFinishChan <- viewID }(viewID)