Rename with_lock to with_redis_lock to avoid confusion with ActiveRecord's method (#24741)
This commit is contained in:
@@ -106,7 +106,7 @@ class ResolveAccountService < BaseService
|
||||
def fetch_account!
|
||||
return unless activitypub_ready?
|
||||
|
||||
with_lock("resolve:#{@username}@#{@domain}") do
|
||||
with_redis_lock("resolve:#{@username}@#{@domain}") do
|
||||
@account = ActivityPub::FetchRemoteAccountService.new.call(actor_url, suppress_errors: @options[:suppress_errors])
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user