V2bX/limiter/clear.go

15 lines
268 B
Go
Raw Normal View History

package limiter
import "log"
func ClearOnlineIP() error {
log.Println("Limiter: Clear online ip...")
limitLock.RLock()
for _, l := range limiter {
l.ConnLimiter.ClearOnlineIP()
}
limitLock.RUnlock()
log.Println("Limiter: Clear online ip done")
return nil
}