mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
fix(Dockerfile): reverted unneeded changes
fix(server/config.go): ensured params are changeable from config file and env fix(server/server.go): removed unnecessary debug line fix(server/timeout.go): removed a commented block style(server/transporter.go): put explicit vars to replace timeout expressions style(tests/server_utils.go): ran gofmt to clean up indenting
This commit is contained in:
@@ -1,16 +1,10 @@
|
||||
package server
|
||||
|
||||
// import (
|
||||
// "time"
|
||||
// )
|
||||
|
||||
const (
|
||||
// The amount of time to elapse without a heartbeat before becoming a candidate.
|
||||
// ElectionTimeout = 200 * time.Millisecond
|
||||
// The amount of time (ms) to elapse without a heartbeat before becoming a candidate.
|
||||
ElectionTimeout = 200
|
||||
|
||||
// The frequency by which heartbeats are sent to followers.
|
||||
//HeartbeatTimeout = 50 * time.Millisecond
|
||||
HeartbeatTimeout = 50
|
||||
|
||||
RetryInterval = 10
|
||||
|
||||
Reference in New Issue
Block a user