Use unchanging github links in docs/comments (#29545)
This commit is contained in:
parent
c10bbf5fe3
commit
a38e424185
6 changed files with 12 additions and 14 deletions
|
@ -13,7 +13,7 @@ describe Rack::Attack, type: :request do
|
|||
# to avoid crossing period boundaries.
|
||||
|
||||
# The code Rack::Attack uses to set periods is the following:
|
||||
# https://github.com/rack/rack-attack/blob/v6.6.1/lib/rack/attack/cache.rb#L64-L66
|
||||
# https://github.com/rack/rack-attack/blob/v6.7.0/lib/rack/attack/cache.rb#L70-L72
|
||||
# So we want to minimize `Time.now.to_i % period`
|
||||
|
||||
travel_to Time.zone.at(counter_prefix * period.seconds)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue