-
Notifications
You must be signed in to change notification settings - Fork 527
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor queueManager into generic queue.Queue (#1796)
* Refactor queueManager into generic queue.Queue * Update CHANGELOG.md * Create shared processFun method and a helper function for queue creation * Remove returning error from ProcessFunc and update chan *request[T] to chan T. * Fix unit tests * Replace go.uber.org/atomic with sync/atomic * Remove redundant accessor * Fix processFunc definition * Add breaking change to CHANGELOG.md * Define metrics on the package level to overcome Prometheus DefaultRegistry limitations * Fix tests in queue_test.go * Deprecate generatorForwarder metrics in favor of queue.Queue metrics
- Loading branch information
Showing
7 changed files
with
567 additions
and
366 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
Oops, something went wrong.