aboutsummaryrefslogtreecommitdiff
path: root/cache_index_commits_display.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-04-03 16:07:41 +0800
committerRunxi Yu <me@runxiyu.org>2025-04-03 16:07:41 +0800
commitb8f51b14f28a9fe09f30fb41d140a093c20d7160 (patch)
tree6a91b4c1b952114b7694b978f7ce0b9924d2d669 /cache_index_commits_display.go
parentHTTP: Make README rendering more composable (diff)
downloadforge-b8f51b14f28a9fe09f30fb41d140a093c20d7160.tar.gz
forge-b8f51b14f28a9fe09f30fb41d140a093c20d7160.tar.zst
forge-b8f51b14f28a9fe09f30fb41d140a093c20d7160.zip
Rename commitDisplay to commitDisplayOld
Diffstat (limited to 'cache_index_commits_display.go')
-rw-r--r--cache_index_commits_display.go4
1 files changed, 2 insertions, 2 deletions
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,