mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
use GlobalContext whenever possible (#9280)
This change is throughout the codebase to ensure that all codepaths honor GlobalContext
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net/http"
|
||||
"strings"
|
||||
"time"
|
||||
@@ -723,7 +722,7 @@ func setBucketForwardingHandler(h http.Handler) http.Handler {
|
||||
PassHost: true,
|
||||
RoundTripper: NewGatewayHTTPTransport(),
|
||||
Logger: func(err error) {
|
||||
logger.LogIf(context.Background(), err)
|
||||
logger.LogIf(GlobalContext, err)
|
||||
},
|
||||
})
|
||||
return bucketForwardingHandler{fwd, h}
|
||||
|
||||
Reference in New Issue
Block a user