Skip to content

Commit

Permalink
remote: remove explicit backoff config from client opts
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Chadwell <[email protected]>
  • Loading branch information
jedevc committed Sep 27, 2023
1 parent e2ebab5 commit 0bd6f3c
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions driver/remote/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0bd6f3c

Please sign in to comment.