aboutsummaryrefslogtreecommitdiff
path: root/cache_commit_path_file_raw.go
diff options
context:
space:
mode:
Diffstat (limited to 'cache_commit_path_file_raw.go')
-rw-r--r--cache_commit_path_file_raw.go24
1 files changed, 0 insertions, 24 deletions
diff --git a/cache_commit_path_file_raw.go b/cache_commit_path_file_raw.go
deleted file mode 100644
index 89b817b..0000000
--- a/cache_commit_path_file_raw.go
+++ /dev/null
@@ -1,24 +0,0 @@
-// SPDX-License-Identifier: AGPL-3.0-only
-// SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu <https://runxiyu.org>
-
-package main
-
-import (
- "github.com/dgraph-io/ristretto/v2"
- "go.lindenii.runxiyu.org/lindenii-common/clog"
-)
-
-// The key is the commit ID raw hash, followed by the file path.
-var commitPathFileRawCache *ristretto.Cache[[]byte, string]
-
-func init() {
- var err error
- commitPathFileRawCache, err = ristretto.NewCache(&ristretto.Config[[]byte, string]{
- NumCounters: 1e4,
- MaxCost: 1 << 60,
- BufferItems: 8192,
- })
- if err != nil {
- clog.Fatal(1, "Error initializing commitPathFileRawCache: "+err.Error())
- }
-}