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

@@ -410,7 +410,7 @@ func (fs *FilerServer) GetFilerConfiguration(ctx context.Context, req *filer_pb.
return t, nil
}
func (fs *FilerServer) KeepConnected(stream filer_pb.SeaweedFiler_KeepConnectedServer) error {
func (fs *FilerServer) SubscribeVolumeLocationUpdates(stream filer_pb.SeaweedFiler_SubscribeVolumeLocationUpdatesServer) error {
req, err := stream.Recv()
if err != nil {
@@ -435,7 +435,7 @@ func (fs *FilerServer) KeepConnected(stream filer_pb.SeaweedFiler_KeepConnectedS
}()
for {
if err := stream.Send(&filer_pb.KeepConnectedResponse{}); err != nil {
if err := stream.Send(&filer_pb.SubscribeVolumeLocationUpdatesResponse{}); err != nil {
glog.V(0).Infof("send broker %v: %+v", clientName, err)
return err
}