Browse Source

properly send heartbeats

fix https://github.com/chrislusf/seaweedfs/issues/476
pull/455/merge 0.75
Chris Lu 8 years ago
parent
commit
a337b844ec
  1. 3
      weed/server/volume_grpc_client.go

3
weed/server/volume_grpc_client.go

@ -82,7 +82,7 @@ func (vs *VolumeServer) doHeartbeat(sleepInterval time.Duration) error {
return err
}
tickChan := time.NewTimer(sleepInterval).C
tickChan := time.Tick(sleepInterval)
for {
select {
@ -92,6 +92,7 @@ func (vs *VolumeServer) doHeartbeat(sleepInterval time.Duration) error {
return err
}
case err := <-doneChan:
glog.V(0).Infof("Volume Server heart beat stops with %v", err)
return err
}
}

Loading…
Cancel
Save