Skip to content

Commit 15163d9

Browse files
authored
fix: ordering of middleware (#1911)
1 parent 342848c commit 15163d9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/tool_configuration.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,14 @@ impl BaseClient {
109109
.build()
110110
.expect("failed to create client"),
111111
)
112-
.with(RetryTransientMiddleware::new_with_policy(
113-
ExponentialBackoff::builder().build_with_max_retries(3),
114-
))
112+
.with(mirror_middleware)
113+
.with(s3_middleware)
115114
.with_arc(Arc::new(AuthenticationMiddleware::from_auth_storage(
116115
auth_storage.clone(),
117116
)))
118-
.with(mirror_middleware)
119-
.with(s3_middleware)
117+
.with(RetryTransientMiddleware::new_with_policy(
118+
ExponentialBackoff::builder().build_with_max_retries(3),
119+
))
120120
.build();
121121

122122
let dangerous_client = reqwest_middleware::ClientBuilder::new(

0 commit comments

Comments
 (0)