mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
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
|
end
|
||||||
|
|
||||||
def self.load_custom
|
def self.load_custom
|
||||||
DistributedMutex.new(EMOJIS_CUSTOM_LOCK).synchronize do
|
|
||||||
Dir.glob(File.join(Emoji.base_directory, "*.{png,gif}"))
|
Dir.glob(File.join(Emoji.base_directory, "*.{png,gif}"))
|
||||||
.sort
|
.sort
|
||||||
.map { |emoji| Emoji.create_from_path(emoji) }
|
.map { |emoji| Emoji.create_from_path(emoji) }
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
def self.base_directory
|
def self.base_directory
|
||||||
"public/#{base_url}"
|
"public/#{base_url}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user