From 94a130a4e4f70a4bddc45d682d0fba3e16b4914c Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 13 Aug 2015 18:53:30 +1000 Subject: [PATCH] FIX: widen distributed mutex to avoid race condition --- lib/letter_avatar.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/letter_avatar.rb b/lib/letter_avatar.rb index 5105fa2a5fc..4b51056b8c3 100644 --- a/lib/letter_avatar.rb +++ b/lib/letter_avatar.rb @@ -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