fixed check

This commit is contained in:
DutchEllie 2021-05-31 14:32:04 +02:00
parent 18aed75a59
commit 4567447667
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ func (l *Limiter) CheckAllowed(userid string) error {
l.removeAction(userid, expiredEntries[i])
}
if counter >= l.RateLimit {
if counter > l.RateLimit {
return errors.New("rate limit exceeded")
} else {
return nil