From dd3f3ede078e6d67ea1b3711054196a6f15e1477 Mon Sep 17 00:00:00 2001 From: kercylan98 Date: Mon, 13 Nov 2023 11:19:28 +0800 Subject: [PATCH] =?UTF-8?q?other:=20=E6=97=A5=E5=BF=97=E8=B0=83=E7=94=A8?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/concurrent/pool.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/utils/concurrent/pool.go b/utils/concurrent/pool.go index b3aecb6..55c7390 100644 --- a/utils/concurrent/pool.go +++ b/utils/concurrent/pool.go @@ -2,7 +2,6 @@ package concurrent import ( "github.com/kercylan98/minotaur/utils/log" - "go.uber.org/zap" "sync" "time" ) @@ -76,7 +75,7 @@ func (slf *Pool[T]) Get() T { if !slf.silent { now := time.Now().Unix() if now-slf.warn >= 1 { - log.Warn("Pool", log.String("Get", "the number of buffer members is insufficient, consider whether it is due to unreleased or inappropriate buffer size"), zap.Stack("stack")) + log.Warn("Pool", log.String("Get", "the number of buffer members is insufficient, consider whether it is due to unreleased or inappropriate buffer size"), log.Stack("stack")) slf.warn = now } }