From 1f4677ef90c06edb2373291d9a96fd46f21e16ac Mon Sep 17 00:00:00 2001 From: Tianxin Dong Date: Wed, 5 Jun 2024 17:34:53 +0800 Subject: [PATCH] fix: disable auto maxprocs logging (#105) Signed-off-by: FogDong --- util/compression/types.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/util/compression/types.go b/util/compression/types.go index 63e00f2..62332a0 100644 --- a/util/compression/types.go +++ b/util/compression/types.go @@ -17,7 +17,7 @@ limitations under the License. package compression import ( - _ "go.uber.org/automaxprocs" + "go.uber.org/automaxprocs/maxprocs" ) // Type the compression type @@ -45,6 +45,8 @@ type compressor interface { } func init() { + maxprocs.Set() + // Add compressors compressors[Gzip] = &gzipCompressor{} compressors[Zstd] = &zstdCompressor{}