Set rpc dial timeout to 5s

This commit is contained in:
chenwanli
2019-01-11 18:23:31 +08:00
parent 8613e4f558
commit 80cf99db1b
2 changed files with 3 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ func (vs *VolumeServer) doHeartbeat(masterNode string, sleepInterval time.Durati
grpcConection, err := util.GrpcDial(masterNode)
if err != nil {
return "", fmt.Errorf("fail to dial: %v", err)
return "", fmt.Errorf("fail to dial %s : %v", masterNode, err)
}
defer grpcConection.Close()