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

View File

@@ -226,7 +226,7 @@ func NewPeerRPCServer() (*xrpc.Server, error) {
// registerPeerRPCRouter - creates and registers Peer RPC server and its router.
func registerPeerRPCRouter(router *mux.Router) {
rpcServer, err := NewPeerRPCServer()
logger.FatalIf(err, "Unable to initialize peer RPC Server", context.Background())
logger.FatalIf(err, "Unable to initialize peer RPC Server")
subrouter := router.PathPrefix(minioReservedBucketPath).Subrouter()
subrouter.Path(peerServiceSubPath).HandlerFunc(httpTraceHdrs(rpcServer.ServeHTTP))
}