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

subsystem: Remove custom event loop support #1256

Merged
merged 3 commits into from
Oct 5, 2023
Merged

Conversation

iljakuklic
Copy link
Contributor

  • Generalized the built-in event loop with
    • Custom initialization
    • Separation between subsystem state object and interface
    • Ability to specify background work in the Subsystem trait
  • Ported p2p to the built-in event loop
  • Ported tests to the built-in event loop
  • Removed support for custom event loop from subsystem
  • Substantial subsystem crate code reorganization

Related:

Copy link
Collaborator

@TheQuantumPhysicist TheQuantumPhysicist left a comment

Choose a reason for hiding this comment

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

Looking good. Great work!

Copy link
Contributor

@muursh muursh left a comment

Choose a reason for hiding this comment

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

I'm alright with this

@iljakuklic iljakuklic force-pushed the subsystem-init branch 8 times, most recently from b192d69 to 81549e8 Compare October 4, 2023 20:54
* Generalized the built-in event loop with
  * Custom initialization
  * Separation between subsystem state object and interface
  * Ability to specify background work in the `Subsystem` trait
* Ported `p2p` to the built-in event loop
* Ported tests to the built-in event loop
* Removed support for custom event loop from subsystem
* Substantial `subsystem` crate code reorganization
Change signal handlers (Ctrl-C / SIGTERM) to be plain futures rather
than something that runs on a separate task. Yields simpler code.
@iljakuklic iljakuklic merged commit 23d426d into master Oct 5, 2023
23 checks passed
@iljakuklic iljakuklic deleted the subsystem-init branch October 5, 2023 19:45
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.

Take advantage of the separation between mutable and immutable subsystem calls
4 participants