master: rename grpc function KeepConnected() to SubscribeVolumeLocationUpdates()

This commit is contained in:
Chris Lu
2021-11-03 01:09:48 -07:00
parent ab97b17e62
commit af71ae11aa
16 changed files with 696 additions and 687 deletions

View File

@@ -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 {

View File

@@ -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}

View File

@@ -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}