return if error

This commit is contained in:
Chris Lu 2021-09-11 02:06:43 -07:00
parent 59cb6146a3
commit f7f01ac209

View file

@ -126,6 +126,7 @@ func (vs *VolumeServer) doHeartbeat(masterNode, masterGrpcAddress string, grpcDi
if vs.store.MaybeAdjustVolumeMax() {
if err = stream.Send(vs.store.CollectHeartbeat()); err != nil {
glog.V(0).Infof("Volume Server Failed to talk with master %s: %v", vs.currentMaster, err)
return
}
}
}