use non-string context key

This commit is contained in:
rushtehrani
2020-06-08 15:43:31 -07:00
parent 601541ebbf
commit 4c4d01ed09
2 changed files with 8 additions and 3 deletions

View File

@@ -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)
}