Sidekiq 7 support. Refactored to use new middleware API #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added Sidekiq 7 support
The internal API for Sidekiq has been refactored, and so the middleware in this gem was not working for versions of Sidekiq 6.5+
https://github.com/sidekiq/sidekiq/blob/main/docs/7.0-Upgrade.md
https://github.com/sidekiq/sidekiq/blob/main/docs/7.0-API-Migration.md
Using these API docs, I've refactored the middleware so it's compatible with versions 6.5 (the API changes) and 7
https://github.com/sidekiq/sidekiq/blob/main/docs/middleware.md
https://www.rubydoc.info/gems/sidekiq/Sidekiq/Middleware