mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
FIX: widen distributed mutex to avoid race condition
This commit is contained in:
parent
0ceca601d8
commit
94a130a4e4
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue