aboutsummaryrefslogtreecommitdiff
path: root/weed/command
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-11-03 01:09:48 -0700
committerChris Lu <chris.lu@gmail.com>2021-11-03 01:09:48 -0700
commitaf71ae11aa29350a60ed7d3b9a16276a06ba9dcc (patch)
treea59876d14e41191709169276cc18daadeddef820 /weed/command
parentab97b17e62503066598f9cf9ecaf4dba4ee2d6d8 (diff)
downloadseaweedfs-af71ae11aa29350a60ed7d3b9a16276a06ba9dcc.tar.xz
seaweedfs-af71ae11aa29350a60ed7d3b9a16276a06ba9dcc.zip
master: rename grpc function KeepConnected() to SubscribeVolumeLocationUpdates()
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}