From 8a4e4a1290bc49ea9ac196f96ff5140ddb871eba Mon Sep 17 00:00:00 2001 From: Vincent Tiu <46623413+Invincibot@users.noreply.github.com> Date: Thu, 27 Aug 2020 20:10:10 +0800 Subject: Update cache/lru_id_cache.go MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Michael Muré --- cache/lru_id_cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cache/lru_id_cache.go') diff --git a/cache/lru_id_cache.go b/cache/lru_id_cache.go index f775404f..fda12ca6 100644 --- a/cache/lru_id_cache.go +++ b/cache/lru_id_cache.go @@ -13,7 +13,7 @@ type LRUIdCache struct { } func NewLRUIdCache() *LRUIdCache { - // Ignore error here + // we can ignore the error here as it would only fail if the size is negative. cache, _ := lru.New(math.MaxInt32) return &LRUIdCache{ -- cgit