修复并发问题

This commit is contained in:
johlanse 2022-10-18 10:47:45 +08:00
parent 00f5387f27
commit 8647e5a150
1 changed files with 1 additions and 1 deletions

2
run.go
View File

@ -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)