-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(conductor): make firm, soft readers subtasks
making the celestia (firm) and astria (soft) readers subtasks of the executor task is a more faithful representation of their dependencies: executor can run with either or both present. But the reader tasks cannot run without the executor task present. To fully initialize they also depend on data from the executor, and they could be implemented by streams instead of free standing tasks. spin up readers only after commitment, genesis states are received this allows removing a lot of complexity: 1. the readers need not explicitly wait for the state to be initialized but receive an already initialized watch channel. 2. there is no need for a bespoke channel to dynamically set permits - a normal mpsc channel can be used with its capacity initialized after receiving the genesis info. executor::Initialized::run delegates to executor::Initialized::run_event_loop to separate the shutdown token from the other arms of the select macro - this way, an else => {} arm can be introduced that shuts down executor as a fallback
- Loading branch information
1 parent
a83f3ee
commit 453f66c
Showing
13 changed files
with
463 additions
and
950 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.