[ Agent ] [ CMII ] - 完成工具类的代码

This commit is contained in:
zeaslity
2024-01-09 16:42:27 +08:00
parent 36b8e36392
commit 22faf15665
18 changed files with 1307 additions and 13 deletions

View File

@@ -25,11 +25,12 @@ const (
// 创建协程池子
var pool, _ = ants.NewPool(
100,
20,
ants.WithNonblocking(false),
ants.WithLogger(logger2.Log),
ants.WithMaxBlockingTasks(30),
ants.WithMaxBlockingTasks(10),
ants.WithDisablePurge(true),
ants.WithPreAlloc(true),
)
var G = NewGlobal(