Skip to content

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Frando committed Oct 3, 2023
1 parent 0197023 commit 318a0e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions iroh/src/downloader/get.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,12 +242,11 @@ pub async fn get<D: Store, C: CollectionParser>(
hash: Hash,
recursive: bool,
) -> Result<Stats, FailureAction> {
let res = if recursive {
if recursive {
get_collection(db, collection_parser, conn, &hash).await
} else {
get_blob(db, conn, &hash).await
};
res
}
}

/// Get a blob that was requested completely.
Expand Down
2 changes: 1 addition & 1 deletion iroh/src/sync_engine/live.rs
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@ impl<S: store::Store, B: baomap::Store> Actor<S, B> {
) -> Result<()> {
// debug log the result, warn in case of errors
match &result {
Ok(res) => log_finished(&origin, &res),
Ok(res) => log_finished(&origin, res),
Err(err) => warn!(?peer, ?namespace, ?err, ?origin, "sync failed"),
}
let state = match result {
Expand Down

0 comments on commit 318a0e4

Please sign in to comment.