[agent-go] 优化代码,完成连通性测试

This commit is contained in:
zeaslity
2023-03-30 15:10:27 +08:00
parent 124143c6c6
commit d24a338e80
6 changed files with 65 additions and 73 deletions

View File

@@ -20,7 +20,7 @@ const (
InitOmType = "INIT"
)
var pool, _ = ants.NewPool(100, ants.WithNonblocking(true), ants.WithLogger(logger2.Log))
var pool, _ = ants.NewPool(100, ants.WithNonblocking(false), ants.WithLogger(logger2.Log), ants.WithMaxBlockingTasks(30), ants.WithDisablePurge(true))
var G = NewGlobal(
pool,