// cleanupVisitors removes old entries from the visitors map.
cleanupVisitors removes old entries from the visitors map.
// cleanupVisitors removes old entries from the visitors map .
func (l *rateLimiter) cleanupVisitors() {
	for {
		time.Sleep(time.Minute)
		l.Lock()
		for ip, v := range l.visitors {
			if time.Since(v.lastSeen) > l.ttl {
				delete(l.visitors, ip)
			}
		}
		l.Unlock()
	}
}
func ( l * rateLimiter ) cleanupVisitors ( ) { for { time . Sleep ( time . Minute ) l . Lock ( ) for ip , v := range l . visitors { if time . Since ( v . lastSeen ) > l . ttl { delete ( l . visitors , ip ) } } l . Unlock ( ) } }
cleanupVisitors removes old entries from the visitors map.
cleanupVisitors removes old entries from the visitors map .