Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
cargo fmt
  • Loading branch information
Shnatsel committed Jun 4, 2025
commit a66225b4aa49db6bf940ae2c38a6bb1ca1f91a90
10 changes: 2 additions & 8 deletions src/publishers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,7 @@ fn get_with_retry(
client: &mut RateLimitedClient,
attempts: u8,
) -> Result<ureq::Response, io::Error> {
let mut resp = client
.get(url)
.call()
.map_err(io::Error::other)?;
let mut resp = client.get(url).call().map_err(io::Error::other)?;

let mut count = 1;
let mut wait = 5;
Expand All @@ -108,10 +105,7 @@ fn get_with_retry(
);
std::thread::sleep(std::time::Duration::from_secs(wait));

resp = client
.get(url)
.call()
.map_err(io::Error::other)?;
resp = client.get(url).call().map_err(io::Error::other)?;

count += 1;
wait *= 3;
Expand Down
Loading