From d51edce583d4951e52adc8b1d6e8f1719d43371e Mon Sep 17 00:00:00 2001 From: Justin Chadwell Date: Tue, 5 Sep 2023 13:10:12 +0100 Subject: [PATCH] Revert "buildctl: set max backoff delay to 1 second" This reverts commit 1aef766b82f94818c8d770da026820f7aa991e12. Signed-off-by: Justin Chadwell --- cmd/buildctl/common/common.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/cmd/buildctl/common/common.go b/cmd/buildctl/common/common.go index a860c2761359..b943ac2a9a0f 100644 --- a/cmd/buildctl/common/common.go +++ b/cmd/buildctl/common/common.go @@ -16,8 +16,6 @@ import ( "github.com/pkg/errors" "github.com/urfave/cli" "go.opentelemetry.io/otel/trace" - "google.golang.org/grpc" - "google.golang.org/grpc/backoff" ) // ResolveClient resolves a client from CLI args @@ -69,12 +67,6 @@ func ResolveClient(c *cli.Context) (*client.Client, error) { opts := []client.ClientOpt{client.WithFailFast()} - backoffConfig := backoff.DefaultConfig - backoffConfig.MaxDelay = 1 * time.Second - opts = append(opts, client.WithGRPCDialOption( - grpc.WithConnectParams(grpc.ConnectParams{Backoff: backoffConfig}), - )) - ctx := CommandContext(c) if span := trace.SpanFromContext(ctx); span.SpanContext().IsValid() {