Skip to content

Commit cf81c96

Browse files
committed
chore(cache): remove dead evictionCount variable after CacheStats removal
1 parent 45897e1 commit cf81c96

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

main.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1130,11 +1130,9 @@ func (dc *DirCache) cleanup() {
11301130
dc.mutex.Lock()
11311131
defer dc.mutex.Unlock()
11321132

1133-
evictionCount := 0
11341133
for key, entry := range dc.cache {
11351134
if now.Sub(entry.timestamp) > dc.config.TTL {
11361135
delete(dc.cache, key)
1137-
evictionCount++
11381136
}
11391137
}
11401138
}

0 commit comments

Comments
 (0)