-
Notifications
You must be signed in to change notification settings - Fork 5
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/main #283
Refactor/main #283
Conversation
I had kind of hoped I could place the |
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.
Some minor nits.
Are all the functions here gonna be used outside?
If yes, then we can keep them all pub
otherwise pub(crate)
.
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.
Good start but we should take this opportunity to break down the components into more distinct modules, see comment.
9ecf255
to
076d2cd
Compare
076d2cd
to
5543c0c
Compare
020996e
to
91b78bb
Compare
I've mostly done renames to make them more understandable. @delbonis We can break down the init better in another PR. I'm taking this one to be partly cleanup before the initial release. Also, asking for a speedy review. Dont know how many rebases I've already done here. |
The rebases must have been a PITA. We need a new rebase. |
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.
Yeah we're not really done with all the changes we want to perform here but any improvement is good.
^ These comments are for future work when we revisit this. |
Cleaned up main: move sequencer init to a different function Restructure ManagerContext creation WIP
add pending task zero future
remove unnecessary clones
add CoreContext to reduce params
91b78bb
to
0606e7a
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.
Approving based on previous comments.
Description
This PR cleans up
main.rs
. Basically refactors hugemain_inner
with manageable helper functions. Also introduces aManagerContext
that hold various managers and handlers. It's not used by any other modules right now, just the main. Plan is to make it usable by others as well in future.Type of Change
Checklist
Related Issues