FIX: widen distributed mutex to avoid race condition

This commit is contained in:
Sam 2015-08-13 18:53:30 +10:00
parent 0ceca601d8
commit 94a130a4e4
1 changed files with 1 additions and 1 deletions

View File

@ -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