mirror of
https://github.com/minio/minio.git
synced 2025-11-22 10:37:42 -05:00
Remove unnecessary contexts passed as data to FatalIf. No need to log an empty context. (#6487)
This commit is contained in:
committed by
Harshavardhana
parent
584cb61bb8
commit
df60b3c733
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user