修复并发问题
This commit is contained in:
parent
00f5387f27
commit
8647e5a150
2
run.go
2
run.go
|
@ -62,7 +62,7 @@ func inittask() {
|
||||||
core2.Push(u.PushId, "flush", message)
|
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)
|
task := i2.(*Task)
|
||||||
log.Infoln("开始执行" + task.User.Nick)
|
log.Infoln("开始执行" + task.User.Nick)
|
||||||
study(task.Core, task.User)
|
study(task.Core, task.User)
|
||||||
|
|
Loading…
Reference in New Issue