mirror of
https://github.com/discourse/discourse.git
synced 2025-06-10 07:38:03 +08:00
FIX: widen distributed mutex to avoid race condition
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user