From 8647e5a150f7657d7bffc24a44010545954f4ae2 Mon Sep 17 00:00:00 2001 From: johlanse Date: Tue, 18 Oct 2022 10:47:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B9=B6=E5=8F=91=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run.go b/run.go index df9b84b..32f3390 100644 --- a/run.go +++ b/run.go @@ -62,7 +62,7 @@ func inittask() { core2.Push(u.PushId, "flush", message) } - pool1, err := ants.NewPoolWithFunc(1, func(i2 interface{}) { + pool1, err := ants.NewPoolWithFunc(config.PoolSize, func(i2 interface{}) { task := i2.(*Task) log.Infoln("开始执行" + task.User.Nick) study(task.Core, task.User)