Overseer: subsystems communicate directly (#2227)
* overseer: pass messages directly between subsystems * test that message is held on to * Update node/overseer/src/lib.rs Co-authored-by:Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com> * give every subsystem an unbounded sender too * remove metered_channel::name 1. we don't provide good names 2. these names are never used anywhere * unused mut * remove unnecessary &mut * subsystem unbounded_send * remove unused MaybeTimer We have channel size metrics that serve the same purpose better now and the implementation of message timing was pretty ugly. * remove comment * split up senders and receivers * update metrics * fix tests * fix test subsystem context * fix flaky test * fix docs * doc * use select_biased to favor signals * Update node/subsystem/src/lib.rs Co-authored-by:
Andronik Ordian <write@reusable.software> Co-authored-by:
Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com> Co-authored-by:
Andronik Ordian <write@reusable.software>
Showing
- polkadot/Cargo.lock 1 addition, 7 deletionspolkadot/Cargo.lock
- polkadot/node/metered-channel/src/bounded.rs 2 additions, 3 deletionspolkadot/node/metered-channel/src/bounded.rs
- polkadot/node/metered-channel/src/lib.rs 5 additions, 12 deletionspolkadot/node/metered-channel/src/lib.rs
- polkadot/node/metered-channel/src/unbounded.rs 3 additions, 4 deletionspolkadot/node/metered-channel/src/unbounded.rs
- polkadot/node/network/bridge/src/lib.rs 1 addition, 1 deletionpolkadot/node/network/bridge/src/lib.rs
- polkadot/node/overseer/Cargo.toml 1 addition, 2 deletionspolkadot/node/overseer/Cargo.toml
- polkadot/node/overseer/src/lib.rs 1828 additions, 1213 deletionspolkadot/node/overseer/src/lib.rs
- polkadot/node/subsystem-test-helpers/src/lib.rs 38 additions, 20 deletionspolkadot/node/subsystem-test-helpers/src/lib.rs
- polkadot/node/subsystem/src/lib.rs 49 additions, 3 deletionspolkadot/node/subsystem/src/lib.rs
Please register or sign in to comment