1
2
mirror of https://github.com/yunginnanet/Rate5 synced 2024-06-28 18:11:01 +00:00
This commit is contained in:
kayos@tcp.direct 2021-08-28 09:48:10 -07:00
parent 6938ea1219
commit 3315e2bbaf

@ -79,7 +79,7 @@ func (q *Limiter) Check(from Identity) bool {
extwindow := q.Ruleset.Window + q.known[src]
q.mu.Unlock()
if err := q.Patrons.Replace(src, count, time.Duration(extwindow)*time.Second); err != nil {
println("Rate5: "+err.Error())
println("Rate5: " + err.Error())
}
q.debugPrint("ratelimit (strictly limited): ", count, " ", src)
return true