mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
14 lines
287 B
Go
14 lines
287 B
Go
package server
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
const (
|
|
// The amount of time to elapse without a heartbeat before becoming a candidate
|
|
defaultElectionTimeout = 200 * time.Millisecond
|
|
|
|
// The frequency by which heartbeats are sent to followers.
|
|
defaultHeartbeatTimeout = 50 * time.Millisecond
|
|
)
|