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

This commit is contained in:
Pontus Leitzler authored and Harshavardhana committed 2018-09-21 16:04:11 -07:00
1 parent 584cb61bb8
commit df60b3c733
8 files changed
+12 -14

No files matched your search

+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,