Batch messages to network bridge and introduce a timeout to SubsystemContext::send_message (#2197)

* guide: batch network messages

* bridge: batch

* av-dist: batch outgoing messages

* time-out message sends in subsystem context

* Update node/subsystem/src/messages.rs

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* Revert "time-out message sends in subsystem context"

This reverts commit d49be62557ec37c8a350b93718acad723df704ef.

* Update node/network/availability-distribution/src/lib.rs

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
Robert Habermeier
2021-01-07 16:01:03 -05:00
committed by GitHub
parent b97f52a4c8
commit 9dee08af2f
6 changed files with 111 additions and 54 deletions
@@ -86,11 +86,11 @@ Map the message onto the corresponding [Event Handler](#event-handlers) based on
- Adjust peer reputation according to cost or benefit provided
### SendValidationMessage
### SendValidationMessage / SendValidationMessages
- Issue a corresponding `ProtocolMessage` to each listed peer on the validation peer-set.
### SendCollationMessage
### SendCollationMessage / SendCollationMessages
- Issue a corresponding `ProtocolMessage` to each listed peer on the collation peer-set.