fix server/server.go accept name when creating a when server; gofmt

This commit is contained in:
Xiang Li
2013-10-13 10:44:40 -07:00
parent d3b064c2e9
commit 0c5808eeec
24 changed files with 897 additions and 907 deletions

View File

@@ -1,15 +1,15 @@
package server
import (
"time"
"time"
)
const (
// The amount of time to elapse without a heartbeat before becoming a candidate.
ElectionTimeout = 200 * time.Millisecond
// The amount of time to elapse without a heartbeat before becoming a candidate.
ElectionTimeout = 200 * time.Millisecond
// The frequency by which heartbeats are sent to followers.
HeartbeatTimeout = 50 * time.Millisecond
// The frequency by which heartbeats are sent to followers.
HeartbeatTimeout = 50 * time.Millisecond
RetryInterval = 10
RetryInterval = 10
)