Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removes unnecessary transaction.

  • Loading branch information...
commit b530d59025815c794d695505409f66426199b81e 1 parent 339e679
@jonhyman jonhyman authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 lib/sidekiq/api.rb
View
5 lib/sidekiq/api.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.