Skip to content

Commit

Permalink
Fix media proxy RedisLocks auto-releasing too fast (mastodon#16291)
Browse files Browse the repository at this point in the history
Follow-up to mastodon#16276
  • Loading branch information
ClearlyClaire committed Jan 28, 2022
1 parent 4d41c91 commit 31d9aa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/media_proxy_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def version
end

def lock_options
{ redis: Redis.current, key: "media_download:#{params[:id]}" }
{ redis: Redis.current, key: "media_download:#{params[:id]}", autorelease: 15.minutes.seconds }
end

def reject_media?
Expand Down

0 comments on commit 31d9aa8

Please sign in to comment.