mirror of
https://github.com/jimeh/redistat.git
synced 2026-02-19 05:16:39 +00:00
Small tweak to better deal with value caching
This commit is contained in:
@@ -14,7 +14,8 @@ module Redistat
|
||||
|
||||
def thread_safe
|
||||
monitor.synchronize do
|
||||
@thread_safe ||= false
|
||||
return @thread_safe unless @thread_safe.nil?
|
||||
@thread_safe = false
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user