-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unexport the Queue method, so that external callers are less likely to abuse it. It will panic if the queue channel has already closed. Use returns instead of breaks when inside of a select statement and the goal was to break out of an outer loop. The break statement will break out of the switch statement, not the loop. Do not queue items from Process. This was needlessly recursive (Process -> queue -> Process) and caused the first Process call to return the original error before attempting the second process (despite waiting for 2 minutes in the foreground), by which time the second Process call could fail due to the wallet locking after the first Process call returned. Remove a log of expected context cancellation errors.
- Loading branch information
Showing
1 changed file
with
20 additions
and
10 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