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

Commit

Permalink
Test: Use unbounded channel to make sure we don't delay peer view upd…
Browse files Browse the repository at this point in the history
…ates.

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
  • Loading branch information
sandreim committed Jan 17, 2023
1 parent 3b67955 commit 1aa0bd2
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions node/network/bridge/src/rx/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -899,12 +899,7 @@ async fn dispatch_validation_events_to_all<I>(
I::IntoIter: Send,
{
for event in events {
sender
.send_messages(event.focus().map(StatementDistributionMessage::from))
.await;
sender.send_messages(event.focus().map(BitfieldDistributionMessage::from)).await;
sender.send_messages(event.focus().map(ApprovalDistributionMessage::from)).await;
sender.send_messages(event.focus().map(GossipSupportMessage::from)).await;
dispatch_validation_event_to_all_unbounded(event, sender);
}
}

Expand Down

0 comments on commit 1aa0bd2

Please sign in to comment.