mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-09 04:17:51 +00:00
corrected nameing
This commit is contained in:
parent
60ee6dcfdd
commit
773019a0f3
1 changed files with 3 additions and 3 deletions
6
cache.go
6
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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue