From acc5da6125b7d7e14dbbd1333f1778555cdad601 Mon Sep 17 00:00:00 2001 From: Olivier Barais Date: Fri, 22 Nov 2024 16:06:02 +0100 Subject: [PATCH] fix #112 --- internal/s3fifo/ghost.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/s3fifo/ghost.go b/internal/s3fifo/ghost.go index 55e2f04..0b263a0 100644 --- a/internal/s3fifo/ghost.go +++ b/internal/s3fifo/ghost.go @@ -32,7 +32,7 @@ type ghost[K comparable, V any] struct { func newGhost[K comparable, V any](main *main[K, V], evictNode func(node.Node[K, V])) *ghost[K, V] { return &ghost[K, V]{ - q: deque.New[uint64](), + q: &deque.Deque[uint64]{}, m: make(map[uint64]struct{}), main: main, hasher: maphash.NewHasher[K](),