Skip to content

Commit

Permalink
fix(options): pass retryBackoff and retryPredicate options to transport
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub <noreply@github.com>
  • Loading branch information
aslafy-z authored Sep 30, 2024
1 parent a07d1ca commit a138e4d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/v1/remote/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,7 @@ func makeOptions(opts ...Option) (*options, error) {
}

// Wrap the transport in something that can retry network flakes.
o.transport = transport.NewRetry(o.transport, transport.WithRetryPredicate(defaultRetryPredicate), transport.WithRetryStatusCodes(o.retryStatusCodes...))

o.transport = transport.NewRetry(o.transport, transport.WithRetryBackoff(o.retryBackoff), transport.WithRetryPredicate(o.retryPredicate), transport.WithRetryStatusCodes(o.retryStatusCodes...))
// Wrap this last to prevent transport.New from double-wrapping.
if o.userAgent != "" {
o.transport = transport.NewUserAgent(o.transport, o.userAgent)
Expand Down

0 comments on commit a138e4d

Please sign in to comment.