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](),