Skip to content

Commit

Permalink
Use ingester client GRPC call options from config. (#1797)
Browse files Browse the repository at this point in the history
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
  • Loading branch information
cyriltovena authored Mar 11, 2020
1 parent 89263b0 commit 97165fc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/ingester/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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...)
Expand Down

0 comments on commit 97165fc

Please sign in to comment.