From aa61824442500d22eae45fe7a459999f6639d66f Mon Sep 17 00:00:00 2001 From: Neo Date: Fri, 27 Sep 2024 15:45:18 +0800 Subject: [PATCH] master:fix empty target in Build() (#6069) --- weed/server/raft_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/server/raft_server.go b/weed/server/raft_server.go index dc409aa35..4d2209dc0 100644 --- a/weed/server/raft_server.go +++ b/weed/server/raft_server.go @@ -130,7 +130,7 @@ func NewRaftServer(option *RaftServerOption) (*RaftServer, error) { } 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 { glog.V(0).Infoln(err) return nil, err