From ab32556a51dc12b25b5b107f3ebc5aea6c54ec47 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 6 Mar 2019 10:21:49 -0800 Subject: [PATCH] weed server: fix error coming from moving raft to grpc fix https://github.com/chrislusf/seaweedfs/issues/872 --- weed/command/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weed/command/server.go b/weed/command/server.go index 1594d20cc..d625dd732 100644 --- a/weed/command/server.go +++ b/weed/command/server.go @@ -183,9 +183,9 @@ func runServer(cmd *Command, args []string) bool { go func() { // start raftServer - myMasterAddress, peers := checkPeers(*masterIp, *mport, *masterPeers) + myMasterAddress, peers := checkPeers(*serverIp, *masterPort, *serverPeers) raftServer := weed_server.NewRaftServer(security.LoadClientTLS(viper.Sub("grpc"), "master"), - peers, myMasterAddress, *metaFolder, ms.Topo, *mpulse) + peers, myMasterAddress, *masterMetaFolder, ms.Topo, *pulseSeconds) ms.SetRaftServer(raftServer) // starting grpc server