mirror of
https://github.com/internetee/registry.git
synced 2025-08-02 16:02:03 +02:00
Add current limits to the error message
This commit is contained in:
parent
16d4e4b4e6
commit
dbe1678430
6 changed files with 11 additions and 3 deletions
|
@ -9,6 +9,10 @@ module Shunter
|
|||
|
||||
BASE_CONNECTION = ENV['shunter_redis_connection'] || { host: 'redis', port: 6379 }
|
||||
|
||||
def default_error_message
|
||||
"Session limit exceeded. Current limit is #{default_threshold} in #{default_timespan} seconds"
|
||||
end
|
||||
|
||||
def default_timespan
|
||||
ENV['shunter_default_timespan'] || ONE_MINUTE
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue