Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Fix wrong logic. (#5931)
Browse files Browse the repository at this point in the history
  • Loading branch information
eskimor authored Aug 25, 2022
1 parent e75f891 commit 157a123
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/network/collator-protocol/src/validator_side/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ async fn handle_peer_view_change(state: &mut State, peer_id: PeerId, view: View)
peer_data.update_view(view);
state
.requested_collations
.retain(|pc, _| pc.peer_id != peer_id || !peer_data.has_advertised(&pc.relay_parent));
.retain(|pc, _| pc.peer_id != peer_id || peer_data.has_advertised(&pc.relay_parent));

Ok(())
}
Expand Down

0 comments on commit 157a123

Please sign in to comment.