update at 2019-11-26 11:40:57 by ehlxr

This commit is contained in:
ehlxr 2019-11-26 11:40:57 +08:00
parent a0ad185b98
commit e6fbd27eb1

View File

@ -28,7 +28,6 @@ func (limiter *LimiterServer) IsAvailable() bool {
if limiter.time.IsZero() ||
limiter.time.Add(limiter.interval).Before(now) {
limiter.reqCount = 0
limiter.time = now
}
if limiter.reqCount < limiter.maxCount {