Skip to content

Commit

Permalink
give Sidekiq::Capsule to Sidekiq::BasicFetch if sidekiq is v7
Browse files Browse the repository at this point in the history
  • Loading branch information
nisyuu committed Jan 18, 2023
1 parent 97084a6 commit b222c01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sidekiq/limit_fetch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def bulk_requeue(*args)
if Sidekiq::BasicFetch.respond_to?(:bulk_requeue) # < 6.1.0
Sidekiq::BasicFetch.bulk_requeue(*args)
else # 6.1.0+
Sidekiq::BasicFetch.new(config).bulk_requeue(*args)
Sidekiq::BasicFetch.new(post_7? ? Sidekiq.default_configuration.default_capsule : config).bulk_requeue(*args)
end
end

Expand Down

0 comments on commit b222c01

Please sign in to comment.