Permalink
Browse files

Removes unnecessary transaction.

  • Loading branch information...
1 parent 339e679 commit b530d59025815c794d695505409f66426199b81e @jonhyman jonhyman committed Feb 18, 2014
Showing with 1 addition and 4 deletions.
  1. +1 −4 lib/sidekiq/api.rb
View
@@ -420,10 +420,7 @@ def each(&block)
Sidekiq.redis do |conn|
workers = conn.smembers("workers")
workers.each do |w|
- msg, time = conn.multi do
- conn.get("worker:#{w}")
- conn.get("worker:#{w}:started")
- end
+ msg, time = conn.mget("worker:#{w}", "worker:#{w}:started")
next unless msg
block.call(w, Sidekiq.load_json(msg), time)
end

0 comments on commit b530d59

Please sign in to comment.