Skip to content

Commit

Permalink
Change retries comparison logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
Edu4rdSHL committed Oct 23, 2023
1 parent 513ce14 commit bc9e404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/httplib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pub async fn return_http_data(options: &LibOptions) -> HashMap<String, HttpData>
let mut response = Option::<Response>::None;

async move {
if options.retries != 1 {
if options.retries > 1 {
let mut counter = 0;
while counter < options.retries {
if let Some(resp) = https_send_fut.try_clone() {
Expand Down

0 comments on commit bc9e404

Please sign in to comment.