From 41fe31b5d061cbc6ca8beeb0ed304262e249812e Mon Sep 17 00:00:00 2001 From: chenwanli Date: Mon, 7 Jan 2019 16:09:15 +0800 Subject: [PATCH] Speed up heartbeat to new master leader --- weed/server/volume_grpc_client_to_master.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/server/volume_grpc_client_to_master.go b/weed/server/volume_grpc_client_to_master.go index 219948936..7493f1460 100644 --- a/weed/server/volume_grpc_client_to_master.go +++ b/weed/server/volume_grpc_client_to_master.go @@ -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 } }