Skip to content

Commit

Permalink
Merge pull request sidekiq#2505 from mperham/feature/default
Browse files Browse the repository at this point in the history
Remove Sidekiq::Client.default since memoization can break sharding with batches
  • Loading branch information
mperham committed Aug 21, 2015
2 parents 90754d0 + 007782d commit 79d672d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/sidekiq/client.rb
Expand Up @@ -119,16 +119,12 @@ def self.via(pool)

class << self

def default
@default ||= new
end

def push(item)
default.push(item)
new.push(item)
end

def push_bulk(items)
default.push_bulk(items)
new.push_bulk(items)
end

# Resque compatibility helpers. Note all helpers
Expand Down

0 comments on commit 79d672d

Please sign in to comment.