Skip to content

Commit

Permalink
Update src/client.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Maciej Zwoliński <[email protected]>
  • Loading branch information
oblique and zvolin authored Feb 6, 2024
1 parent cb09470 commit 82a6335
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ where
let mut new_blocks = Vec::new();

// Update presence
for (cid, block_presense) in msg.block_presences {
match block_presense {
for (cid, block_presence) in msg.block_presences {
match block_presence {
BlockPresenceType::Have => peer_state.wantlist.got_have(&cid),
BlockPresenceType::DontHave => peer_state.wantlist.got_dont_have(&cid),
}
Expand Down

0 comments on commit 82a6335

Please sign in to comment.