Remove unnecessary contexts passed as data to FatalIf. No need to log an empty context. (#6487)

This commit is contained in:
Pontus Leitzler
2018-09-22 01:04:11 +02:00
committed by Harshavardhana
parent 584cb61bb8
commit df60b3c733
8 changed files with 12 additions and 14 deletions
+2 -2
View File
@@ -157,9 +157,9 @@ func makeAdminPeers(endpoints EndpointList) (adminPeerList adminPeers) {
for _, hostStr := range GetRemotePeers(endpoints) {
host, err := xnet.ParseHost(hostStr)
logger.FatalIf(err, "Unable to parse Admin RPC Host", context.Background())
logger.FatalIf(err, "Unable to parse Admin RPC Host")
rpcClient, err := NewAdminRPCClient(host)
logger.FatalIf(err, "Unable to initialize Admin RPC Client", context.Background())
logger.FatalIf(err, "Unable to initialize Admin RPC Client")
adminPeerList = append(adminPeerList, adminPeer{
addr: hostStr,
cmdRunner: rpcClient,