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: Zadkiel AHARONIAN <hello@zadkiel.fr>
  • Loading branch information
aslafy-z authored May 25, 2024
1 parent 249d7e1 commit d40aa02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/v1/remote/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func makeOptions(target authn.Resource, 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(retryableStatusCodes...))
o.transport = transport.NewRetry(o.transport, transport.WithRetryBackoff(o.retryBackoff), transport.WithRetryPredicate(o.retryPredicate), transport.WithRetryStatusCodes(retryableStatusCodes...))

// Wrap this last to prevent transport.New from double-wrapping.
if o.userAgent != "" {
Expand Down

0 comments on commit d40aa02

Please sign in to comment.