mirror of
https://github.com/yunginnanet/Rate5
synced 2024-06-28 18:11:01 +00:00
gofmt -w
This commit is contained in:
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
|
||||
|
Loading…
Reference in New Issue
Block a user