Speed up heartbeat to new master leader

This commit is contained in:
chenwanli 2019-01-07 16:09:15 +08:00
parent e768e64fbc
commit 41fe31b5d0

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)
return "", err
}
case <-doneChan:
case err = <-doneChan:
return
}
}