fix(backend): add default limiter to rate limiter

This commit is contained in:
Sam 2023-02-25 21:41:51 +01:00
parent c95285e26b
commit b92ced7d1a
No known key found for this signature in database
GPG key ID: B4EF20DDE721CAA1

View file

@ -31,6 +31,7 @@ func NewLimiter(defaultLimit int, windowLength time.Duration, options ...httprat
return &Limiter{ return &Limiter{
windowLength: windowLength, windowLength: windowLength,
options: options, options: options,
defaultLimiter: httprate.Limit(defaultLimit, windowLength, options...),
} }
} }