Skip to content
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: add LeaderSchedule trait #4973

Merged
merged 4 commits into from
Mar 4, 2025

Conversation

jstarry
Copy link

@jstarry jstarry commented Feb 13, 2025

Problem

Need to add another type of leader schedule introduced by SIMD-0180

Summary of Changes

  • New leader schedule trait named LeaderScheduleVariant
  • Use LeaderSchedule as type alias for Box<dyn LeaderScheduleVariant>
  • Rename some things to make the new trait easier to reason about

Fixes #

Copy link

@t-nelson t-nelson left a comment

Choose a reason for hiding this comment

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

3x red lines. winner in my book!

can we give the "current" leader schedule a more descriptive name, "identity_mapped" or similar?

@jstarry jstarry force-pushed the refactor/leader-schedule-trait branch from 0d79307 to 6f4c835 Compare March 4, 2025 16:06
@jstarry
Copy link
Author

jstarry commented Mar 4, 2025

3x red lines. winner in my book!

Ha don't get too excited. This is just the refactor, still have to implement the new vote keyed schedule in a follow up. This approach is going to add more code than the other way.

Copy link

@t-nelson t-nelson left a comment

Choose a reason for hiding this comment

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

3x red lines. winner in my book!

Ha don't get too excited. This is just the refactor, still have to implement the new vote keyed schedule in a follow up. This approach is going to add more code than the other way.

lol. those will be green lines tho and we'll get to delete the old version eventually!

@jstarry jstarry merged commit bf1809c into anza-xyz:master Mar 4, 2025
47 checks passed
@jstarry jstarry deleted the refactor/leader-schedule-trait branch March 4, 2025 18:59
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.

2 participants