diff options
Diffstat (limited to 'internal/queue/struct.go')
| -rw-r--r-- | internal/queue/struct.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/queue/struct.go b/internal/queue/struct.go index 27139daec..6296eb4c2 100644 --- a/internal/queue/struct.go +++ b/internal/queue/struct.go @@ -62,8 +62,7 @@ func (q *StructQueue[T]) Push(values ...T) { // Delete pops (and drops!) all queued entries under index with key. func (q *StructQueue[T]) Delete(index string, key ...any) { - i := q.index[index] - _ = q.queue.Pop(i, i.Key(key...)) + _ = q.queue.Pop(q.index[index], structr.MakeKey(key...)) } // Len: see structr.Queue{}.Len(). |
