Issue 62: Latest raft update breaks the build

This commit is contained in:
Chris Lu 2014-01-28 11:15:24 -08:00
parent cda2a6b510
commit bf56bce5e9

View file

@ -42,7 +42,7 @@ func NewRaftServer(r *mux.Router, version string, peers []string, httpAddr strin
return nil return nil
} }
transporter.Install(s.raftServer, s) transporter.Install(s.raftServer, s)
s.raftServer.SetHeartbeatTimeout(1 * time.Second) s.raftServer.SetHeartbeatInterval(1 * time.Second)
s.raftServer.SetElectionTimeout(1500 * time.Millisecond) s.raftServer.SetElectionTimeout(1500 * time.Millisecond)
s.raftServer.Start() s.raftServer.Start()