Rename with_lock
to with_redis_lock
to avoid confusion with ActiveRecord's method (#24741)
This commit is contained in:
@ -15,7 +15,7 @@ class UnfollowService < BaseService
|
||||
@target_account = target_account
|
||||
@options = options
|
||||
|
||||
with_lock("relationship:#{[source_account.id, target_account.id].sort.join(':')}") do
|
||||
with_redis_lock("relationship:#{[source_account.id, target_account.id].sort.join(':')}") do
|
||||
unfollow! || undo_follow_request!
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user