Skip to content

Commit

Permalink
remove retry middleware again for the time being
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv committed Mar 19, 2024
1 parent 41c7b87 commit 208f38a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/utils/reqwest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ use rattler_networking::{

use reqwest::Client;
use reqwest_middleware::{ClientBuilder, ClientWithMiddleware};
use reqwest_retry::RetryTransientMiddleware;
use std::collections::HashMap;

use crate::config::Config;
Expand Down Expand Up @@ -96,9 +95,7 @@ pub(crate) fn build_reqwest_clients(config: Option<&Config>) -> (Client, ClientW
.build()
.expect("failed to create reqwest Client");

let mut client_builder = ClientBuilder::new(client.clone()).with(
RetryTransientMiddleware::new_with_policy(default_retry_policy()),
);
let mut client_builder = ClientBuilder::new(client.clone());

if !config.mirror_map().is_empty() {
client_builder = client_builder
Expand Down

0 comments on commit 208f38a

Please sign in to comment.