Skip to content

Commit

Permalink
feat - retry wildcard request error
Browse files Browse the repository at this point in the history
  • Loading branch information
rumblefrog committed Jul 29, 2021
1 parent 003da76 commit 9b295ac
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rust-fetch"
version = "0.6.11"
version = "0.6.12"
authors = ["rumblefrog <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rust-fetch",
"version": "0.6.11",
"version": "0.6.12",
"description": "Rust HTTP wrapper for JS",
"main": "dist/index.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion release_build.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.6.11+
0.6.12
4 changes: 2 additions & 2 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -466,8 +466,8 @@ impl ErrorHandler<Error> for Attempter {
}

_ => {
debug!("Request error, forwarding error: {}", &e);
RetryPolicy::ForwardError(e)
debug!("Request error: {}, retrying", &e);
RetryPolicy::WaitRetry(RETRY_DURATION)
}
}
}
Expand Down

0 comments on commit 9b295ac

Please sign in to comment.