Skip to content

Commit

Permalink
Fix media proxy RedisLocks auto-releasing too fast
Browse files Browse the repository at this point in the history
Follow-up to mastodon#16276
  • Loading branch information
ClearlyClaire committed May 22, 2021
1 parent 92a9fcf commit 3c04e88
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 3c04e88

Please sign in to comment.