[ Cmii ] [ Octopus ] - 优化项目结构
This commit is contained in:
@@ -3,7 +3,7 @@ package g
|
||||
import (
|
||||
"github.com/panjf2000/ants/v2"
|
||||
"github.com/spf13/viper"
|
||||
logger2 "wdd.io/agent-go/logger"
|
||||
"wdd.io/agent-common/logger"
|
||||
)
|
||||
|
||||
type Global struct {
|
||||
@@ -27,7 +27,7 @@ const (
|
||||
var pool, _ = ants.NewPool(
|
||||
20,
|
||||
ants.WithNonblocking(false),
|
||||
ants.WithLogger(logger2.Log),
|
||||
ants.WithLogger(logger.Log),
|
||||
ants.WithMaxBlockingTasks(10),
|
||||
ants.WithDisablePurge(true),
|
||||
ants.WithPreAlloc(true),
|
||||
|
||||
Reference in New Issue
Block a user