Merge pull request #816 from PapaYofen/feat-heartbeat

Speed up heartbeat to new master leader
This commit is contained in:
Chris Lu 2019-01-07 00:16:39 -08:00 committed by GitHub
commit 88849b9807
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -110,7 +110,7 @@ func (vs *VolumeServer) doHeartbeat(masterNode string, sleepInterval time.Durati
glog.V(0).Infof("Volume Server Failed to talk with master %s: %v", masterNode, err) glog.V(0).Infof("Volume Server Failed to talk with master %s: %v", masterNode, err)
return "", err return "", err
} }
case <-doneChan: case err = <-doneChan:
return return
} }
} }