We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc636f6 commit 3d2772eCopy full SHA for 3d2772e
1 file changed
multiraft_runtime.go
@@ -24,11 +24,7 @@ type raftGroupRuntime struct {
24
closeStores func()
25
}
26
27
-// raftCommitTimeout is intentionally short (1ms) to minimize latency for
28
-// single-node and low-latency cluster deployments. Raft.Apply still blocks
29
-// until the log entry is committed, so this only affects the initial timeout
30
-// before returning an error if the leader cannot commit in time.
31
-const raftCommitTimeout = 1 * time.Millisecond
+const raftCommitTimeout = 50 * time.Millisecond
32
33
func (r *raftGroupRuntime) Close() {
34
if r == nil {
0 commit comments