-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
notification: refactor dcrd notification pipeline
The block, tx, reorg, etc updates from dcrd were being routed through a series of channels that made the code a bit tedious. These changes are a simplification, but should reproduce the established behavior exactly. The 2nd level channels were dropped in favor of registered functions. There is a still a queue loop that handles top-level synchronization, but packages' handlers no longer requires an additional goroutine or explicit synchronization measures. Handlers are registered in groups. The groups themselves are run sequentially, but the functions within a group are run async, allowing a high degree of sychronization control.
- Loading branch information
Showing
22 changed files
with
1,083 additions
and
1,276 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
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.