mirror of
https://codeberg.org/pronounscc/pronouns.cc.git
synced 2024-11-20 14:19:52 +01:00
fix(backend): add default limiter to rate limiter
This commit is contained in:
parent
c95285e26b
commit
b92ced7d1a
1 changed files with 3 additions and 2 deletions
|
@ -31,6 +31,7 @@ func NewLimiter(defaultLimit int, windowLength time.Duration, options ...httprat
|
|||
return &Limiter{
|
||||
windowLength: windowLength,
|
||||
options: options,
|
||||
defaultLimiter: httprate.Limit(defaultLimit, windowLength, options...),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue