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:
Neil Dunbar
2013-12-05 09:23:23 +00:00
parent faab194247
commit 0867b33de5
6 changed files with 19 additions and 20 deletions

View File

@@ -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