From 773019a0f33fc8d6b80742cec81f58bb5c80f341 Mon Sep 17 00:00:00 2001 From: Todd Gruben Date: Mon, 28 Aug 2017 14:15:59 -0500 Subject: [PATCH] corrected nameing --- cache.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cache.go b/cache.go index 890a38e0b..2e66d35b9 100644 --- a/cache.go +++ b/cache.go @@ -256,10 +256,10 @@ func (c *RankCache) recalculate() { length := len(c.rankings) c.stats.Gauge("RankCache", float64(length), 1.0) - var remove_items []BitmapPair // cached, ordered list + var removeItems []BitmapPair // cached, ordered list if length > int(c.maxEntries) { c.thresholdValue = rankings[c.maxEntries].Count - remove_items = c.rankings[c.maxEntries:] + removeItems = c.rankings[c.maxEntries:] c.rankings = c.rankings[0:c.maxEntries] } else { c.thresholdValue = 1 @@ -271,7 +271,7 @@ func (c *RankCache) recalculate() { // If size is larger than the threshold then trim it. if len(c.entries) > c.thresholdBuffer { c.stats.Count("cache.threshold", 1, 1.0) - for _, pair := range remove_items { + for _, pair := range removeItems { delete(c.entries, pair.ID) } }