Просмотр исходного кода

Merge pull request #8419 from gyuho/ctx

auth: replace NewContext with NewOutgoingContext
Gyu-Ho Lee 8 лет назад
Родитель
Сommit
1f228e753d
1 измененных файлов с 1 добавлено и 1 удалено
  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 {