-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(server): Terminate on service panic (#4249)
Terminate the process when a panic occurs in one of the services. Instead of implementing a sync `fn spawn_handler()` interface, each service now implements an `async fn run()` interface. This simplifies service implementations in most cases (except where services need to spawn multiple tasks), and allows us to join on all service main tasks to detect a panic. The PR introduces a `ServiceRunner` utility to easily start & join on running services. --------- Co-authored-by: Sebastian Zivota <[email protected]>
- Loading branch information
1 parent
8acb6f0
commit 69c2e6a
Showing
26 changed files
with
623 additions
and
614 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.