code refactor

This commit is contained in:
Ulric Qin 2020-04-09 00:21:28 +08:00
parent 8f40b87bec
commit 761c0fae25
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ func rpcCall(addr string, items []*dataobj.MetricValue) (dataobj.TransferResp, e
if err != nil {
rpcClients.Put(addr, nil)
client.Close()
return reply, err
return reply, fmt.Errorf("%s rpc call done, but fail: %v", addr, err)
}
}