@@ -145,7 +145,7 @@ func (c *Cache) worker() {
for {
select {
case item := <-c.promotables:
if c.doPromote(item) && atomic.LoadInt64(&c.size) > c.maxItems {
if c.doPromote(item) && atomic.LoadInt64(&c.size) > c.maxSize {
c.gc()
}
case item := <-c.deletables:
The note is not visible to the blocked user.