Skip to content

Add buffered rounds - #54

Merged
survived merged 10 commits into
legacy/v0.4from
feat/msg-one-by-one
Dec 1, 2026
Merged

survived merged 10 commits into
legacy/v0.4from
feat/msg-one-by-one

Conversation

@survived

@survived survived commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Messages received in those rounds are buffered. Protocol implementation then processes them one-by-one through rounds.next_msg_in(buffered_round).

See example: https://github.com/LFDT-Lockness/round-based/blob/dd5657ed8a3adde352437ecf461340c178ae6b10/examples/consensus-on-termination/src/lib.rs.

@socket-security

socket-security Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedtokio@​1.37.0 ⏵ 1.54.155 -7100 +193100100
Updatedanyhow@​1.0.93 ⏵ 1.0.10581 +110093100100
Updatedserde@​1.0.198 ⏵ 1.0.2298110093100100
Addeded25519-dalek@​2.2.010010093100100
Addedfutures-util@​0.3.3410010093100100
Updatedrand@​0.8.5 ⏵ 0.8.8100 +1100 +193100100
Updatedtrybuild@​1.0.91 ⏵ 1.0.12696 +1810093100100

View full report

Messages received in those rounds are buffered. Protocol implementation then processes them
one-by-one through `rounds.next_msg_in(buffered_round)`.

Signed-off-by: Denis Varlakov <cordial.egg6523@fastmail.com>
@survived
survived force-pushed the feat/msg-one-by-one branch from d907733 to 0550c3f Compare November 20, 2026 08:25
Providing `parent: &span` is actually wrong way of instrumenting logs. Span has to be entered to be
handled correctly by most integrations (such as Datadog).

Commit instruments async functions via `#[tracing::instrument]` which solves all the issues, and
provides nicer developer experience.

Signed-off-by: Denis Varlakov <cordial.egg6523@fastmail.com>
Signed-off-by: Denis Varlakov <cordial.egg6523@fastmail.com>
Signed-off-by: Denis Varlakov <cordial.egg6523@fastmail.com>
Signed-off-by: Denis Varlakov <cordial.egg6523@fastmail.com>
Signed-off-by: Denis Varlakov <cordial.egg6523@fastmail.com>
Comment thread round-based/src/rounds_router/mod.rs Resolved
Comment thread round-based/src/rounds_router/mod.rs Resolved
@maurges

maurges commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Reviewed the implementation. Can't comment on the applicability of the api

Signed-off-by: Denis Varlakov <cordial.egg6523@fastmail.com>
maurges
maurges previously approved these changes Nov 30, 2026

@maurges maurges left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure I fully grasp the logic of the latest change, but low-level it seems sane

Version that we used to use doesn't work with latest Rust version
for some reason.

Signed-off-by: Denis Varlakov <cordial.egg6523@fastmail.com>
Signed-off-by: Denis Varlakov <cordial.egg6523@fastmail.com>
Signed-off-by: Denis Varlakov <cordial.egg6523@fastmail.com>
@survived

survived commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

@maurges updated the PR so the CI passes

@survived
survived merged commit f340589 into legacy/v0.4 Dec 1, 2026
15 checks passed
@survived
survived deleted the feat/msg-one-by-one branch December 1, 2026 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants