diff --git a/item.go b/item.go index 081259d..f677ef7 100644 --- a/item.go +++ b/item.go @@ -26,5 +26,5 @@ func newItem(key string, value interface{}, expires time.Time) *Item { } func (i *Item) shouldPromote(getsPerPromote int32) bool { - return atomic.AddInt32(&i.promotions, 1) == getsPerPromote { + return atomic.AddInt32(&i.promotions, 1) == getsPerPromote }