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

This reverts commit af71ae11aa.
This commit is contained in:
Chris Lu
2021-11-05 17:52:15 -07:00
parent 314c32514b
commit 5ea86ef1da
16 changed files with 687 additions and 696 deletions

View File

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