diff options
Diffstat (limited to 'weed/command')
| -rw-r--r-- | weed/command/benchmark.go | 2 | ||||
| -rw-r--r-- | weed/command/master.go | 2 | ||||
| -rw-r--r-- | weed/command/master_follower.go | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/weed/command/benchmark.go b/weed/command/benchmark.go index adf0a8bfa..af5919adf 100644 --- a/weed/command/benchmark.go +++ b/weed/command/benchmark.go @@ -130,7 +130,7 @@ func runBenchmark(cmd *Command, args []string) bool { } b.masterClient = wdclient.NewMasterClient(b.grpcDialOption, "client", "", "", pb.ServerAddresses(*b.masters).ToAddresses()) - go b.masterClient.LoopConnectToMaster() + go b.masterClient.KeepConnectedToMaster() b.masterClient.WaitUntilConnected() if *b.write { diff --git a/weed/command/master.go b/weed/command/master.go index 5003f7d56..fc3e41d8d 100644 --- a/weed/command/master.go +++ b/weed/command/master.go @@ -157,7 +157,7 @@ func startMaster(masterOption MasterOptions, masterWhiteList []string) { } }() - go ms.MasterClient.LoopConnectToMaster() + go ms.MasterClient.KeepConnectedToMaster() // start http server httpS := &http.Server{Handler: r} diff --git a/weed/command/master_follower.go b/weed/command/master_follower.go index 791972406..95f1c80b8 100644 --- a/weed/command/master_follower.go +++ b/weed/command/master_follower.go @@ -132,7 +132,7 @@ func startMasterFollower(masterOptions MasterOptions) { glog.V(0).Infof("Start Seaweed Master %s grpc server at %s:%d", util.Version(), *masterOptions.ip, grpcPort) go grpcS.Serve(grpcL) - go ms.MasterClient.LoopConnectToMaster() + go ms.MasterClient.KeepConnectedToMaster() // start http server httpS := &http.Server{Handler: r} |
