remove all calls to the distributed mutex in emojis
This commit is contained in:
parent
324a3da723
commit
86c7071559
|
@ -85,12 +85,10 @@ class Emoji
|
|||
end
|
||||
|
||||
def self.load_custom
|
||||
DistributedMutex.new(EMOJIS_CUSTOM_LOCK).synchronize do
|
||||
Dir.glob(File.join(Emoji.base_directory, "*.{png,gif}"))
|
||||
.sort
|
||||
.map { |emoji| Emoji.create_from_path(emoji) }
|
||||
end
|
||||
end
|
||||
|
||||
def self.base_directory
|
||||
"public/#{base_url}"
|
||||
|
|
Loading…
Reference in New Issue