Skip to content

Commit

Permalink
chore: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Frando committed Mar 15, 2024
1 parent 0cf5a38 commit 248c26a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions iroh-bytes/src/downloader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -796,10 +796,7 @@ impl<G: Getter<Connection = D::Connection>, D: Dialer> Service<G, D> {
}

fn next_action_for_download(&self, kind: &DownloadKind) -> HashAction {
let mut candidates = self
.providers
.get_candidates(&kind.hash())
.peekable();
let mut candidates = self.providers.get_candidates(&kind.hash()).peekable();
// no candidates: abort.
if candidates.peek().is_none() {
return HashAction::OutOfProviders;
Expand Down
2 changes: 1 addition & 1 deletion iroh/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,7 @@ impl<D: BaoStore> RpcHandler<D> {
let db = self.inner.db.clone();
let hash_and_format = HashAndFormat { hash, format };
let temp_pin = self.inner.db.temp_tag(hash_and_format);
let node_id = peer.node_id.clone();
let node_id = peer.node_id;
self.inner.endpoint.add_node_addr(peer).ok(); // todo: handle err
let downloader = self.inner.downloader.clone();
self.inner.rt.spawn_pinned(move || async move {
Expand Down

0 comments on commit 248c26a

Please sign in to comment.