-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(consensus): move the sync check into run_height #2499
refactor(consensus): move the sync check into run_height #2499
Conversation
6dab128
to
3f1941d
Compare
c1149d1
to
57f1b5a
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## matan/consensus/manager_test_timeout #2499 +/- ##
=======================================================================
- Coverage 9.76% 9.65% -0.12%
=======================================================================
Files 87 87
Lines 10491 10476 -15
Branches 10491 10476 -15
=======================================================================
- Hits 1024 1011 -13
Misses 9430 9430
+ Partials 37 35 -2 ☔ View full report in Codecov by Sentry. |
3f1941d
to
6763c05
Compare
57f1b5a
to
cd7996a
Compare
47b5c52
to
dc9907a
Compare
cd7996a
to
29db716
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @dan-starkware)
Should we move the logic into an Code quote: sync_height = sync_height(height, sync_receiver) => {
return Ok(RunHeightRes::Sync(sync_height?));
} |
dc9907a
to
8201792
Compare
29db716
to
a1767a4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 2 files reviewed, all discussions resolved (waiting on @asmaastarkware and @dan-starkware)
crates/sequencing/papyrus_consensus/src/manager.rs
line 185 at r1 (raw file):
Previously, dan-starkware wrote…
Should we move the logic into an
habdle_
function and have only thenext()
here?
Well we can't actually put this neatly into a handle_
function since I want to continue
, but I can just put the logic inline since it is fairly straightforward.
I think that they benefit of simplifying the cancellation logic is more important than avoiding code in the macro.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r2, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @matan-starkware)
8201792
to
6a663bb
Compare
a1767a4
to
a29a735
Compare
6a663bb
to
af0e37d
Compare
a29a735
to
270de19
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 2 files at r2, 1 of 1 files at r3, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @matan-starkware)
Merge activity
|
The goal is to remove the nested selects to make cancellation logic simpler.
270de19
to
7e20c5d
Compare
The goal is to remove the nested selects to make cancellation logic simpler.