Browse Source

Issue 62: Latest raft update breaks the build

pull/2/head
Chris Lu 11 years ago
parent
commit
bf56bce5e9
  1. 2
      go/weed/weed_server/raft_server.go

2
go/weed/weed_server/raft_server.go

@ -42,7 +42,7 @@ func NewRaftServer(r *mux.Router, version string, peers []string, httpAddr strin
return nil
}
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.Start()

Loading…
Cancel
Save