Skip to content

Commit a138e4d

Browse files
authored
fix(options): pass retryBackoff and retryPredicate options to transport
Signed-off-by: GitHub <[email protected]>
1 parent a07d1ca commit a138e4d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/v1/remote/options.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,7 @@ func makeOptions(opts ...Option) (*options, error) {
163163
}
164164

165165
// Wrap the transport in something that can retry network flakes.
166-
o.transport = transport.NewRetry(o.transport, transport.WithRetryPredicate(defaultRetryPredicate), transport.WithRetryStatusCodes(o.retryStatusCodes...))
167-
166+
o.transport = transport.NewRetry(o.transport, transport.WithRetryBackoff(o.retryBackoff), transport.WithRetryPredicate(o.retryPredicate), transport.WithRetryStatusCodes(o.retryStatusCodes...))
168167
// Wrap this last to prevent transport.New from double-wrapping.
169168
if o.userAgent != "" {
170169
o.transport = transport.NewUserAgent(o.transport, o.userAgent)

0 commit comments

Comments
 (0)