aboutsummaryrefslogtreecommitdiff
path: root/weed/command
diff options
context:
space:
mode:
Diffstat (limited to 'weed/command')
-rw-r--r--weed/command/benchmark.go2
-rw-r--r--weed/command/master.go2
-rw-r--r--weed/command/master_follower.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/weed/command/benchmark.go b/weed/command/benchmark.go
index af5919adf..adf0a8bfa 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.KeepConnectedToMaster()
+ go b.masterClient.LoopConnectToMaster()
b.masterClient.WaitUntilConnected()
if *b.write {
diff --git a/weed/command/master.go b/weed/command/master.go
index fc3e41d8d..5003f7d56 100644
--- a/weed/command/master.go
+++ b/weed/command/master.go
@@ -157,7 +157,7 @@ func startMaster(masterOption MasterOptions, masterWhiteList []string) {
}
}()
- go ms.MasterClient.KeepConnectedToMaster()
+ go ms.MasterClient.LoopConnectToMaster()
// start http server
httpS := &http.Server{Handler: r}
diff --git a/weed/command/master_follower.go b/weed/command/master_follower.go
index 95f1c80b8..791972406 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.KeepConnectedToMaster()
+ go ms.MasterClient.LoopConnectToMaster()
// start http server
httpS := &http.Server{Handler: r}