mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-17 03:28:32 +02:00
Issue 62: Latest raft update breaks the build
This commit is contained in:
1 parent
cda2a6b510
commit
bf56bce5e9
1 file changed
+1
-1
@@ -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()
|
||||
|
||||
|
||||
Reference in new issue
Block a user