From 305c96e3845d595bd2f16979948b5a651d1e3447 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Wed, 25 Oct 2023 09:25:28 +0200 Subject: [PATCH] lib/workingsetcache: fix outdated comments for Load() and New() functions --- lib/workingsetcache/cache.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/workingsetcache/cache.go b/lib/workingsetcache/cache.go index a48235521..74d54d81f 100644 --- a/lib/workingsetcache/cache.go +++ b/lib/workingsetcache/cache.go @@ -56,7 +56,7 @@ type Cache struct { } // Load loads the cache from filePath and limits its size to maxBytes -// and evicts inactive entries in 20 minutes. +// and evicts inactive entries in *cacheExpireDuration minutes. // // Stop must be called on the returned cache when it is no longer needed. func Load(filePath string, maxBytes int) *Cache { @@ -88,7 +88,7 @@ func loadWithExpire(filePath string, maxBytes int, expireDuration time.Duration) return newCacheInternal(curr, prev, whole, maxBytes) } -// New creates new cache with the given maxBytes capacity. +// New creates new cache with the given maxBytes capacity and *cacheExpireDuration expiration. // // Stop must be called on the returned cache when it is no longer needed. func New(maxBytes int) *Cache {