Skip to content

Commit 96a76ce

Browse files
authored
Fix GRPC client not honouring call options (#5797)
Signed-off-by: 🌲 Harry 🌊 John 🏔 <[email protected]>
1 parent eafc37a commit 96a76ce

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
* [BUGFIX] Query Frontend: queries with negative offset should check whether it is cacheable or not. #5719
2828
* [BUGFIX] Redis Cache: pass `cache_size` config correctly. #5734
2929
* [BUGFIX] Distributor: Shuffle-Sharding with IngestionTenantShardSize == 0, default sharding strategy should be used #5189
30+
* [BUGFIX] Cortex: Fix GRPC stream clients not honoring overrides for call options. #5797
3031

3132

3233
## 1.16.0 2023-11-20

pkg/util/grpcutil/util.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func HTTPHeaderPropagationClientInterceptor(ctx context.Context, method string,
6969
func HTTPHeaderPropagationStreamClientInterceptor(ctx context.Context, desc *grpc.StreamDesc, cc *grpc.ClientConn, method string,
7070
streamer grpc.Streamer, opts ...grpc.CallOption) (grpc.ClientStream, error) {
7171
ctx = injectForwardedHeadersIntoMetadata(ctx)
72-
return streamer(ctx, desc, cc, method)
72+
return streamer(ctx, desc, cc, method, opts...)
7373
}
7474

7575
// injectForwardedHeadersIntoMetadata implements HTTPHeaderPropagationClientInterceptor and HTTPHeaderPropagationStreamClientInterceptor

0 commit comments

Comments
 (0)