aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorTak Wai Wong <64229756+tak-hntlabs@users.noreply.github.com>2022-08-12 01:12:05 -0700
committerGitHub <noreply@github.com>2022-08-12 09:12:05 +0100
commitfad3ac8e787cebd231d6fe115980f6335bc94353 (patch)
tree6b323890d628f8e7356bdf5df531ce94065c4b09 /internal
parent2b352915a1722f4971283272f34d219ac6ee32af (diff)
Protect user_interactive reads and writes with locks (#2635)
* Protect user_interactive reads and writes with locks * Ignore golangci-lint false positive * fix lint Co-authored-by: Tak Wai Wong <tak@hntlabs.com>
Diffstat (limited to 'internal')
-rw-r--r--internal/caching/impl_ristretto.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/caching/impl_ristretto.go b/internal/caching/impl_ristretto.go
index fc0c8cc0..49292d0d 100644
--- a/internal/caching/impl_ristretto.go
+++ b/internal/caching/impl_ristretto.go
@@ -146,7 +146,7 @@ func (c *RistrettoCostedCachePartition[K, V]) Set(key K, value V) {
}
type RistrettoCachePartition[K keyable, V any] struct {
- cache *ristretto.Cache
+ cache *ristretto.Cache //nolint:all,unused
Prefix byte
Mutable bool
MaxAge time.Duration