Skip to content

Commit

Permalink
Fixes with timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
amigin committed Dec 27, 2024
1 parent 224f94e commit c0a6860
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/fl_url.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ pub struct FlUrl {
pub headers: FlUrlHeaders,
pub client_cert: Option<my_tls::ClientCertificate>,
pub accept_invalid_certificate: bool,
pub execute_timeout: Duration,
// If we are trying to reuse connection, but it was not used for this time, we will drop it
pub not_used_connection_timeout: Duration,
pub request_timeout: Duration,
Expand Down Expand Up @@ -91,7 +90,6 @@ impl FlUrl {

Self {
headers: FlUrlHeaders::new(),
execute_timeout: Duration::from_secs(30),
client_cert: None,
url,
accept_invalid_certificate: false,
Expand Down Expand Up @@ -213,7 +211,7 @@ impl FlUrl {
}

pub fn set_timeout(mut self, timeout: Duration) -> Self {
self.execute_timeout = timeout;
self.request_timeout = timeout;
self
}

Expand Down

0 comments on commit c0a6860

Please sign in to comment.