lib/sidekiq/limit_fetch/global/selector.rb in sidekiq-limit_fetch-1.2 vs lib/sidekiq/limit_fetch/global/selector.rb in sidekiq-limit_fetch-1.3
- old
+ new
@@ -14,10 +14,10 @@
# - if we'll remove "@uuid ||=" from inside of mutex
# then @uuid can be overwritten
# - if we'll remove "@uuid ||=" from outside of mutex
# then each read will lead to mutex
@uuid ||= Thread.exclusive do
- @uuid ||= SecureRandom.uuid
+ @uuid || SecureRandom.uuid
end
end
private