aboutsummaryrefslogtreecommitdiff
path: root/weed/wdclient/masterclient.go
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/wdclient/masterclient.go
parentab97b17e62503066598f9cf9ecaf4dba4ee2d6d8 (diff)
downloadseaweedfs-af71ae11aa29350a60ed7d3b9a16276a06ba9dcc.tar.xz
seaweedfs-af71ae11aa29350a60ed7d3b9a16276a06ba9dcc.zip
master: rename grpc function KeepConnected() to SubscribeVolumeLocationUpdates()
Diffstat (limited to 'weed/wdclient/masterclient.go')
-rw-r--r--weed/wdclient/masterclient.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/wdclient/masterclient.go b/weed/wdclient/masterclient.go
index 8fd337272..060522ac6 100644
--- a/weed/wdclient/masterclient.go
+++ b/weed/wdclient/masterclient.go
@@ -44,7 +44,7 @@ func (mc *MasterClient) WaitUntilConnected() {
}
}
-func (mc *MasterClient) KeepConnectedToMaster() {
+func (mc *MasterClient) LoopConnectToMaster() {
glog.V(1).Infof("%s masterClient bootstraps with masters %v", mc.clientType, mc.masters)
for {
mc.tryAllMasters()
@@ -99,13 +99,13 @@ func (mc *MasterClient) tryConnectToMaster(master pb.ServerAddress) (nextHintedL
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
- stream, err := client.KeepConnected(ctx)
+ stream, err := client.SubscribeVolumeLocationUpdates(ctx)
if err != nil {
glog.V(1).Infof("%s masterClient failed to keep connected to %s: %v", mc.clientType, master, err)
return err
}
- if err = stream.Send(&master_pb.KeepConnectedRequest{
+ if err = stream.Send(&master_pb.SubscribeVolumeLocationUpdatesRequest{
ClientType: mc.clientType,
ClientAddress: string(mc.clientHost),
Version: util.Version(),