Skip to content

Commit

Permalink
Made Requests retriable
Browse files Browse the repository at this point in the history
  • Loading branch information
amigin committed Nov 22, 2024
1 parent 0629c74 commit 6ca8114
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/fl_url.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ pub struct FlUrl {
ssh_credentials: Option<my_ssh::SshCredentials>,

max_retries: usize,
retry_delay: Duration,
}

impl FlUrl {
Expand Down Expand Up @@ -94,7 +93,6 @@ impl FlUrl {
clients_cache: None,
not_used_connection_timeout: Duration::from_secs(30),
max_retries: 0,
retry_delay: Duration::from_secs(3),
request_timeout: Duration::from_secs(10),
tls_server_name: None,
#[cfg(feature = "with-ssh")]
Expand All @@ -112,9 +110,8 @@ impl FlUrl {
self
}

pub fn with_retries(mut self, max_retries: usize, retry_delay: Duration) -> Self {
pub fn with_retries(mut self, max_retries: usize) -> Self {
self.max_retries = max_retries;
self.retry_delay = retry_delay;
self
}

Expand Down

0 comments on commit 6ca8114

Please sign in to comment.