-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use 'Chan' instead of 'TQueue' for node's tip, and simplify the watch…
…er logic Chans have the nice property to be 'duplicable'. So, we can rely on this instead of re-implementing our own fan-out logic. I believe the original error that made worker crashes could have been a race-condition where the watcher would exit unexpectedly but I wasn't quite clearly able to identify the cause. Using 'Chan' looks definitely simpler. I've already removed the possibility for workers to exit with a failure. This wasn't actually used and added on top of the complexity. If that's needed, we can work it out a bit later but for now, a simpler API makes it easier to debug. Integration scenarios are no longer 'blowing up' unexpectedly, yet, the 'reward accumulate and stop' scenario still does not pass.
- Loading branch information
Showing
5 changed files
with
53 additions
and
111 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,7 +54,6 @@ library | |
, cryptonite | ||
, directory | ||
, exceptions | ||
, extra | ||
, filepath | ||
, fmt | ||
, generic-lens | ||
|
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