Skip to content

Commit

Permalink
Revert "buildctl: set max backoff delay to 1 second"
Browse files Browse the repository at this point in the history
This reverts commit 1aef766.

Signed-off-by: Justin Chadwell <me@jedevc.com>
  • Loading branch information
jedevc committed Sep 5, 2023
1 parent 980ea2d commit d51edce
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions cmd/buildctl/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit d51edce

Please sign in to comment.