Skip to content

Commit

Permalink
fix: Remove deprecated options
Browse files Browse the repository at this point in the history
  • Loading branch information
michaljurecko committed Jun 13, 2024
1 parent 20cc2fa commit 0455ea8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions internal/pkg/service/common/etcdclient/etcdclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ func New(ctx context.Context, proc *servicectx.Process, tel telemetry.Telemetry,
PermitWithoutStream: true, // always send keep-alive pings
DialOptions: []grpc.DialOption{
grpc.WithStatsHandler(otelgrpc.NewClientHandler(otelgrpc.WithTracerProvider(tel.TracerProvider()), otelgrpc.WithMeterProvider(tel.MeterProvider()))),
grpc.WithBlock(), // wait for the connection
grpc.WithReturnConnectionError(),
grpc.WithConnectParams(grpc.ConnectParams{
Backoff: backoff.Config{
BaseDelay: 100 * time.Millisecond,
Expand Down
2 changes: 0 additions & 2 deletions internal/pkg/utils/etcdhelper/fortest.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,6 @@ func clientForTest(t testOrBenchmark, ctx context.Context, cfg etcdclient.Config
// Dial options
dialOpts = append(
dialOpts,
grpc.WithBlock(), // wait for the connection
grpc.WithReturnConnectionError(), // wait for the connection error
grpc.WithConnectParams(grpc.ConnectParams{
Backoff: backoff.Config{
BaseDelay: 100 * time.Millisecond,
Expand Down

0 comments on commit 0455ea8

Please sign in to comment.