From 86aae63eaa365b2466b8c802f0cd3aee29677aaa Mon Sep 17 00:00:00 2001 From: Justin Chadwell Date: Wed, 6 Sep 2023 23:16:07 +0100 Subject: [PATCH] remote: remove explicit backoff config from client opts Signed-off-by: Justin Chadwell --- driver/remote/driver.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/driver/remote/driver.go b/driver/remote/driver.go index aa481cbe26f..c12cf995b58 100644 --- a/driver/remote/driver.go +++ b/driver/remote/driver.go @@ -2,14 +2,11 @@ package remote import ( "context" - "time" "github.com/docker/buildx/driver" "github.com/docker/buildx/util/progress" "github.com/moby/buildkit/client" "github.com/moby/buildkit/util/tracing/detect" - "google.golang.org/grpc" - "google.golang.org/grpc/backoff" ) type Driver struct { @@ -67,12 +64,6 @@ func (d *Driver) Rm(ctx context.Context, force, rmVolume, rmDaemon bool) error { func (d *Driver) Client(ctx context.Context) (*client.Client, error) { opts := []client.ClientOpt{} - backoffConfig := backoff.DefaultConfig - backoffConfig.MaxDelay = 1 * time.Second - opts = append(opts, client.WithGRPCDialOption( - grpc.WithConnectParams(grpc.ConnectParams{Backoff: backoffConfig}), - )) - exp, err := detect.Exporter() if err != nil { return nil, err