1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Tweak for Pro compat

This commit is contained in:
Mike Perham 2019-09-12 11:54:10 -07:00
parent 817c8eedc9
commit 38585226a8
2 changed files with 6 additions and 1 deletions

View file

@ -4,6 +4,11 @@
Please see [http://sidekiq.org/](http://sidekiq.org/) for more details and how to buy.
5.0.1
---------
- Sidekiq::JobSet#scan and #find_job APIs have been promoted to Sidekiq OSS. [#4259]
5.0.0
---------

View file

@ -525,7 +525,7 @@ module Sidekiq
Sidekiq.redis { |c| c.zcard(name) }
end
def scan(match, count: 100)
def scan(match, count = 100)
return to_enum(:scan, match) unless block_given?
match = "*#{match}*" unless match.include?("*")