From 88dd4778eb9b6e4a3d6ba8ff498938e28467edf5 Mon Sep 17 00:00:00 2001 From: Timmy Welch Date: Mon, 5 Aug 2024 13:56:02 -0700 Subject: [PATCH] Fix bufPool --- hashcompute.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hashcompute.go b/hashcompute.go index 13c8556..c70a97f 100644 --- a/hashcompute.go +++ b/hashcompute.go @@ -20,7 +20,7 @@ var bufPool = sync.Pool{ // The Pool's New function should generally only return pointer // types, since a pointer can be put into the return interface // value without an allocation: - return make([]uint8, 1024) + return &[]uint8{} }, }