mirror of
https://github.com/pgsty/minio.git
synced 2026-03-16 01:26:03 +01: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"
|
||||
"errors"
|
||||
"net/http"
|
||||
"time"
|
||||
@@ -164,6 +163,6 @@ func webRequestAuthenticate(req *http.Request) (*xjwt.MapClaims, bool, error) {
|
||||
func newAuthToken(audience string) string {
|
||||
cred := globalActiveCred
|
||||
token, err := authenticateNode(cred.AccessKey, cred.SecretKey, audience)
|
||||
logger.CriticalIf(context.Background(), err)
|
||||
logger.CriticalIf(GlobalContext, err)
|
||||
return token
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user