func (ps *rateLimiter) Run() {
	info.UpdateRateLimiter(*ps.Stats())
	t := time.NewTicker(ps.decayPeriod)
	defer t.Stop()
	for {
		select {
		case <-t.C:
			ps.decayScore()
		case <-ps.exit:
			return
		}
	}
}
// Run runs the rate limiter, occasionally decaying the score.
Run runs the rate limiter, occasionally decaying the score.
// Run runs the rate limiter occasionally decaying the score .
func (ps *rateLimiter) Run() {
	info.UpdateRateLimiter(*ps.Stats())
	t := time.NewTicker(ps.decayPeriod)
	defer t.Stop()
	for {
		select {
		case <-t.C:
			ps.decayScore()
		case <-ps.exit:
			return
		}
	}
}
func ( ps * rateLimiter ) Run ( ) { info . UpdateRateLimiter ( * ps . Stats ( ) ) t := time . NewTicker ( ps . decayPeriod ) defer t . Stop ( ) for { select { case <- t . C : ps . decayScore ( ) case <- ps . exit : return } } }
Run runs the rate limiter, occasionally decaying the score.
Run runs the rate limiter occasionally decaying the score .