|
@@ -7,7 +7,7 @@ import (
|
|
|
const (
|
|
const (
|
|
|
// The amount of time to elapse without a heartbeat before becoming a candidate
|
|
// The amount of time to elapse without a heartbeat before becoming a candidate
|
|
|
defaultElectionTimeout = 200 * time.Millisecond
|
|
defaultElectionTimeout = 200 * time.Millisecond
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// The frequency by which heartbeats are sent to followers.
|
|
// The frequency by which heartbeats are sent to followers.
|
|
|
defaultHeartbeatTimeout = 50 * time.Millisecond
|
|
defaultHeartbeatTimeout = 50 * time.Millisecond
|
|
|
)
|
|
)
|