Skip to content

Commit

Permalink
Fix GRPC client not honouring call options
Browse files Browse the repository at this point in the history
Signed-off-by: 🌲 Harry 🌊 John 🏔 <johrry@amazon.com>
  • Loading branch information
harry671003 committed Mar 5, 2024
1 parent c033170 commit 64be403
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/util/grpcutil/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func HTTPHeaderPropagationClientInterceptor(ctx context.Context, method string,
func HTTPHeaderPropagationStreamClientInterceptor(ctx context.Context, desc *grpc.StreamDesc, cc *grpc.ClientConn, method string,
streamer grpc.Streamer, opts ...grpc.CallOption) (grpc.ClientStream, error) {
ctx = injectForwardedHeadersIntoMetadata(ctx)
return streamer(ctx, desc, cc, method)
return streamer(ctx, desc, cc, method, opts...)
}

// injectForwardedHeadersIntoMetadata implements HTTPHeaderPropagationClientInterceptor and HTTPHeaderPropagationStreamClientInterceptor
Expand Down

0 comments on commit 64be403

Please sign in to comment.