From 80350853315fef91356e003d302ced6783256c12 Mon Sep 17 00:00:00 2001 From: gearnode Date: Tue, 11 Mar 2025 17:37:14 +0100 Subject: [PATCH] Fix duplicated ctx key Signed-off-by: gearnode --- pkg/server/api/console/v1/resolver.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/server/api/console/v1/resolver.go b/pkg/server/api/console/v1/resolver.go index 9e14552b9..109e474b2 100644 --- a/pkg/server/api/console/v1/resolver.go +++ b/pkg/server/api/console/v1/resolver.go @@ -51,11 +51,13 @@ type ( usrmgrSvc *usrmgr.Service authCfg AuthConfig } + + ctxKey struct{} ) var ( - sessionContextKey = struct{}{} - userContextKey = struct{}{} + sessionContextKey ctxKey = struct{}{} + userContextKey ctxKey = struct{}{} ) func SessionFromContext(ctx context.Context) *coredata.Session {