Skip to content
Merged
Changes from all commits
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
8 changes: 3 additions & 5 deletions src/cargo/sources/registry/http_remote.rs
Original file line number Diff line number Diff line change
Expand Up @@ -476,11 +476,6 @@ impl<'gctx> HttpBackend<'gctx> {
if self.offline() {
return Ok(LoadResponse::NotFound);
}

if !self.fresh.borrow_mut().insert(path.to_string()) {
warn!("downloaded the index file `{path}` twice");
}

let mut r = Retry::new(self.gctx)?;
self.pending.update(|v| v + 1);
let response = loop {
Expand All @@ -494,6 +489,9 @@ impl<'gctx> HttpBackend<'gctx> {
}
};
self.pending.update(|v| v - 1);
if !self.fresh.borrow_mut().insert(path.to_string()) {
warn!("downloaded the index file `{path}` twice");
}
response
}

Expand Down