From f8e11358d0292b88e22d85f3cd178ad179b25d56 Mon Sep 17 00:00:00 2001 From: destel Date: Tue, 3 Dec 2024 19:56:47 +0200 Subject: [PATCH] Fix go 1.20 specific compilation error --- buffer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buffer.go b/buffer.go index 69dea76..57123c2 100644 --- a/buffer.go +++ b/buffer.go @@ -19,5 +19,5 @@ func PriorityQueue[A any](in <-chan Try[A], capacity int, less func(A, A) bool) return !less(item1.Value, item2.Value) }) - return core.CustomBuffer(in, buf) + return core.CustomBuffer[Try[A]](in, buf) }