Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
double check the context for cancellation
When the context is canceled, there's no guarantee that Consume() will return context.Canceled. As a result, the context needs to be double-checked before looping in order to shutdown cleanly.
- Loading branch information