FIX: widen distributed mutex to avoid race condition
This commit is contained in:
parent
0ceca601d8
commit
94a130a4e4
|
@ -31,7 +31,7 @@ class LetterAvatar
|
|||
end
|
||||
|
||||
def generate(username, size, opts = nil)
|
||||
DistributedMutex.synchronize("letter_avatar_#{version}_#{username}_#{size}") do
|
||||
DistributedMutex.synchronize("letter_avatar_#{version}_#{username}") do
|
||||
identity = Identity.from_username(username)
|
||||
|
||||
cache = true
|
||||
|
|
Loading…
Reference in New Issue