From 01792c8295a498c56925634614cd88a3fb1c4dc7 Mon Sep 17 00:00:00 2001 From: Ge Song Date: Mon, 10 Apr 2023 13:56:55 +0800 Subject: [PATCH] =?UTF-8?q?log/=E4=BF=AE=E5=A4=8DWithBufferPool;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- log/logsdk/logjson/option.go | 1 + 1 file changed, 1 insertion(+) diff --git a/log/logsdk/logjson/option.go b/log/logsdk/logjson/option.go index ac0a2bb..5aa5af5 100644 --- a/log/logsdk/logjson/option.go +++ b/log/logsdk/logjson/option.go @@ -17,6 +17,7 @@ type Option interface { func WithBufferPool(pool synchelper.BytesBufferPool) Option { return optionFunc(func(cfg *config) { cfg.pool = pool + cfg.hasPool = true }) }