From a685758ca90ba200488959af01024b59a530da10 Mon Sep 17 00:00:00 2001 From: kercylan98 Date: Tue, 16 May 2023 18:04:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E6=81=A2=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/synchronization/pool.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utils/synchronization/pool.go b/utils/synchronization/pool.go index e12bb60..4d4256b 100644 --- a/utils/synchronization/pool.go +++ b/utils/synchronization/pool.go @@ -1,6 +1,8 @@ package synchronization import ( + "github.com/kercylan98/minotaur/utils/log" + "go.uber.org/zap" "sync" ) @@ -37,7 +39,7 @@ func (slf *Pool[T]) Get() T { return data } slf.mutex.Unlock() - //log.Warn("Pool", zap.String("Get", "the number of buffer members is insufficient, consider whether it is due to unreleased or inappropriate buffer size")) + log.Warn("Pool", zap.String("Get", "the number of buffer members is insufficient, consider whether it is due to unreleased or inappropriate buffer size")) return slf.generator() }