Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
amigin committed Nov 22, 2024
1 parent 6ca8114 commit 001a842
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/fl_url.rs
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ impl FlUrl {
let client_cert = self.client_cert.take();

loop {
let reused_connection = http_client_resolver
let tcp_client = http_client_resolver
.get_http_client(
&self.url,
domain_override.as_ref(),
Expand All @@ -445,9 +445,7 @@ impl FlUrl {
)
.await;

let response = reused_connection
.do_request(request, self.request_timeout)
.await;
let response = tcp_client.do_request(request, self.request_timeout).await;

match response {
Ok(response) => {
Expand All @@ -463,7 +461,7 @@ impl FlUrl {
)
.await;

if self.max_retries >= attempt_no {
if attempt_no >= self.max_retries {
return Err(FlUrlError::MyHttpClientError(err));
}

Expand Down

0 comments on commit 001a842

Please sign in to comment.