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 39d1148 commit 10c7e61
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 @@ -163,7 +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 != "" {
Expand Down

0 comments on commit 10c7e61

Please sign in to comment.