We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 854bdd6 commit b65c4a6Copy full SHA for b65c4a6
server/proxy/grpcproxy/util.go
@@ -37,7 +37,8 @@ func getAuthTokenFromClient(ctx context.Context) string {
37
func withClientAuthToken(ctx, ctxWithToken context.Context) context.Context {
38
token := getAuthTokenFromClient(ctxWithToken)
39
if token != "" {
40
- ctx = context.WithValue(ctx, rpctypes.TokenFieldNameGRPCKey{}, token)
+ md := metadata.Pairs(rpctypes.TokenFieldNameGRPC, token)
41
+ return metadata.NewOutgoingContext(ctx, md)
42
}
43
return ctx
44
server/proxy/grpcproxy/watch_broadcasts.go
@@ -70,6 +70,7 @@ func (wbs *watchBroadcasts) coalesce(wb *watchBroadcast) {
70
wbs.watchers[w] = wbswb
71
72
wb.receivers = nil
73
+ watchersCoalescing.Inc()
74
75
wbswb.mu.Unlock()
76
wb.mu.Unlock()
0 commit comments