From 97165fc0a0398d0b2a5645ef6e5c256737b9de6e Mon Sep 17 00:00:00 2001 From: Cyril Tovena Date: Wed, 11 Mar 2020 17:35:55 -0400 Subject: [PATCH] Use ingester client GRPC call options from config. (#1797) Signed-off-by: Cyril Tovena --- pkg/ingester/client/client.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/ingester/client/client.go b/pkg/ingester/client/client.go index e19ca9b5a24cb..7cbeb59bae16f 100644 --- a/pkg/ingester/client/client.go +++ b/pkg/ingester/client/client.go @@ -36,9 +36,7 @@ func (cfg *Config) RegisterFlags(f *flag.FlagSet) { func New(cfg Config, addr string) (grpc_health_v1.HealthClient, error) { opts := []grpc.DialOption{ grpc.WithInsecure(), - grpc.WithDefaultCallOptions( - grpc.UseCompressor("gzip"), - ), + grpc.WithDefaultCallOptions(cfg.GRPCClientConfig.CallOptions()...), } opts = append(opts, cfg.GRPCClientConfig.DialOption(instrumentation())...) conn, err := grpc.Dial(addr, opts...)