Parcourir la source

auth: replace NewContext with NewOutgoingContext

Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
Gyu-Ho Lee il y a 8 ans
Parent
commit
35b11bf438
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      auth/store.go

+ 1 - 1
auth/store.go

@@ -1098,7 +1098,7 @@ func (as *authStore) WithRoot(ctx context.Context) context.Context {
 		"token": token,
 	}
 	tokenMD := metadata.New(mdMap)
-	return metadata.NewContext(ctx, tokenMD)
+	return metadata.NewOutgoingContext(ctx, tokenMD)
 }
 
 func (as *authStore) HasRole(user, role string) bool {