From b8f51b14f28a9fe09f30fb41d140a093c20d7160 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 3 Apr 2025 16:07:41 +0800 Subject: Rename commitDisplay to commitDisplayOld --- cache_index_commits_display.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cache_index_commits_display.go') diff --git a/cache_index_commits_display.go b/cache_index_commits_display.go index fc28cf1..54b3eab 100644 --- a/cache_index_commits_display.go +++ b/cache_index_commits_display.go @@ -9,11 +9,11 @@ import ( ) // The key is the commit ID raw hash. -var indexCommitsDisplayCache *ristretto.Cache[[]byte, []commitDisplay] +var indexCommitsDisplayCache *ristretto.Cache[[]byte, []commitDisplayOld] func init() { var err error - indexCommitsDisplayCache, err = ristretto.NewCache(&ristretto.Config[[]byte, []commitDisplay]{ + indexCommitsDisplayCache, err = ristretto.NewCache(&ristretto.Config[[]byte, []commitDisplayOld]{ NumCounters: 1e4, MaxCost: 1 << 60, BufferItems: 8192, -- cgit v1.2.3