Searched refs:current_rate (Results 1 – 1 of 1) sorted by relevance
45 RateLimit* current_rate = GetRateLimit(event_name); in IsWithinRateLimit() local46 if (current_rate) { in IsWithinRateLimit()47 return current_rate->IsWithinRateLimit(); in IsWithinRateLimit()55 RateLimit* current_rate = GetRateLimit(event_name); in UpdateRateLimit() local56 if (!current_rate) { in UpdateRateLimit()57 current_rate = new RateLimit(max_count, per_x_seconds); in UpdateRateLimit()58 rate_limits_[event_name] = current_rate; in UpdateRateLimit()60 current_rate->UpdateRateLimit(); in UpdateRateLimit()