From 9c08bcd9584fcf908b8f8ce6408c5d10887e8914 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Sun, 29 Jan 2023 11:36:53 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E9=99=8D=E4=BD=8E=E8=87=AA=E5=8A=A8=20?= =?UTF-8?q?OCR=20=E6=97=B6=E7=9A=84=E5=B9=B6=E5=8F=91=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/ocr.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/model/ocr.go b/kernel/model/ocr.go index e45318261..ef18d8f34 100644 --- a/kernel/model/ocr.go +++ b/kernel/model/ocr.go @@ -34,8 +34,8 @@ func autoOCRAssets() { assets := getUnOCRAssetsAbsPaths() if 0 < len(assets) { poolSize := runtime.NumCPU() - if 4 < poolSize { - poolSize = 4 + if 2 < poolSize { + poolSize = 2 } waitGroup := &sync.WaitGroup{} p, _ := ants.NewPoolWithFunc(poolSize, func(arg interface{}) {