Browse Source

master:fix empty target in Build() (#6069)

pull/6073/head
Neo 3 months ago
committed by GitHub
parent
commit
aa61824442
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      weed/server/raft_server.go

2
weed/server/raft_server.go

@ -130,7 +130,7 @@ func NewRaftServer(option *RaftServerOption) (*RaftServer, error) {
} }
stateMachine := StateMachine{topo: option.Topo} stateMachine := StateMachine{topo: option.Topo}
s.raftServer, err = raft.NewServer(string(s.serverAddr), s.dataDir, transporter, stateMachine, option.Topo, "")
s.raftServer, err = raft.NewServer(string(s.serverAddr), s.dataDir, transporter, stateMachine, option.Topo, s.serverAddr.ToGrpcAddress())
if err != nil { if err != nil {
glog.V(0).Infoln(err) glog.V(0).Infoln(err)
return nil, err return nil, err

Loading…
Cancel
Save