apollo_propeller: add RegisterHandler command and inbound unit SelectAll#13347
Conversation
guy-starkware
left a comment
There was a problem hiding this comment.
@guy-starkware reviewed 1 file and all commit messages, and made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on ShahakShama and sirandreww-starkware).
crates/apollo_propeller/src/engine.rs line 32 at r1 (raw file):
/// A stream of `(PeerId, PropellerUnit)` from a single connection handler's bounded channel. type InboundUnitStream = Pin<Box<dyn futures::Stream<Item = (PeerId, PropellerUnit)> + Send>>;
I thought each connection is to a specific PeerId. Wouldn't that just make each PeerId that comes out this stream the same peer id? Maybe we don't need to send it?
168163d to
c7ce5e5
Compare
961b456 to
6a9c03e
Compare
c7ce5e5 to
57e977b
Compare
4750bb8 to
d40cb43
Compare
5f1a101 to
d992b45
Compare
d40cb43 to
82c4842
Compare
d992b45 to
c708962
Compare
82c4842 to
804ca41
Compare
PR SummaryMedium Risk Overview The engine keeps a Reviewed by Cursor Bugbot for commit 1c30253. Bugbot is set up for automated code reviews on this repo. Configure here. |
c708962 to
ae3023d
Compare
804ca41 to
8f202fe
Compare
|
There hasn't been any activity on this pull request recently, and in order to prioritize active work, it has been marked as stale. |
8f202fe to
d94d469
Compare
ae3023d to
9183488
Compare
9183488 to
ef9da12
Compare
d94d469 to
1c30253
Compare
ShahakShama
left a comment
There was a problem hiding this comment.
@ShahakShama reviewed 1 file and all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on sirandreww-starkware).
ShahakShama
left a comment
There was a problem hiding this comment.
@ShahakShama made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on sirandreww-starkware).
sirandreww-starkware
left a comment
There was a problem hiding this comment.
@sirandreww-starkware reviewed 2 files and all commit messages, and made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on sirandreww-starkware).
sirandreww-starkware
left a comment
There was a problem hiding this comment.
@sirandreww-starkware resolved 1 discussion and dismissed @guy-starkware from a discussion.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on sirandreww-starkware).

Note
Medium Risk
Changes the engine’s async event loop to poll additional inbound streams, which can affect message ingestion ordering/backpressure and shutdown behavior if not wired correctly.
Overview
Adds a new engine command,
EngineCommand::RegisterHandler, that lets the behaviour register a per-connection boundedReceiver<PropellerUnit>with the engine.The engine now maintains a
SelectAllof tagged inbound streams and extends its maintokio::select!loop to consume(PeerId, PropellerUnit)items from these receivers, routing them through the existinghandle_unitpath alongside the existingHandleHandlerOutputmechanism.Written by Cursor Bugbot for commit 82c4842. This will update automatically on new commits. Configure here.