mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-16 10:40:38 +08:00
use non-string context key
This commit is contained in:
@@ -11,5 +11,5 @@ const (
|
||||
)
|
||||
|
||||
func getClient(ctx context.Context) *v1.Client {
|
||||
return ctx.Value(auth.ClientContextKey).(*v1.Client)
|
||||
return ctx.Value(auth.ContextClientKey).(*v1.Client)
|
||||
}
|
||||
|
Reference in New Issue
Block a user