aboutsummaryrefslogtreecommitdiff
path: root/weed/command
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-11-05 17:52:15 -0700
committerChris Lu <chris.lu@gmail.com>2021-11-05 17:52:15 -0700
commit5ea86ef1dabfa6267eb68c1ef82939910f2d3505 (patch)
tree2957313fd024567eb8bb410468f1355c6706ae7a /weed/command
parent314c32514b1134f5605ca8bc3e1cdf785943b53b (diff)
downloadseaweedfs-5ea86ef1dabfa6267eb68c1ef82939910f2d3505.tar.xz
seaweedfs-5ea86ef1dabfa6267eb68c1ef82939910f2d3505.zip
Revert "master: rename grpc function KeepConnected() to SubscribeVolumeLocationUpdates()"
This reverts commit af71ae11aa29350a60ed7d3b9a16276a06ba9dcc.
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 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}