Set the node's connection string when creating a new raft server

pull/1081/merge
John Shahid 2014-10-31 13:54:20 -04:00
parent f9b3a27345
commit bdcaef1ded
1 changed files with 1 additions and 1 deletions

View File

@ -384,7 +384,7 @@ func (s *RaftServer) startRaft() error {
// Initialize and start Raft server.
transporter := raft.NewHTTPTransporter("/raft", raft.DefaultElectionTimeout)
var err error
s.raftServer, err = raft.NewServer(s.name, s.path, transporter, s.clusterConfig, s.clusterConfig, "")
s.raftServer, err = raft.NewServer(s.name, s.path, transporter, s.clusterConfig, s.clusterConfig, s.config.RaftConnectionString())
if err != nil {
return err
}