Timeout refactor.

This commit is contained in:
Ben Johnson
2013-12-07 14:35:31 -07:00
parent aabd0faebe
commit 8442e7a0dc
7 changed files with 42 additions and 37 deletions

View File

@ -88,8 +88,8 @@ func NewConfig() *Config {
c.MaxRetryAttempts = 3
c.Peer.Addr = "127.0.0.1:7001"
c.SnapshotCount = 10000
c.HeartbeatTimeout = HeartbeatTimeout
c.ElectionTimeout = ElectionTimeout
c.ElectionTimeout = 0
c.HeartbeatTimeout = 0
return c
}