[ Cmii ] [ Octopus ] - 优化项目结构

This commit is contained in:
zeaslity
2024-03-19 16:04:09 +08:00
committed by zeaslity
parent 4ca8d77e74
commit 6b4616690c
80 changed files with 979 additions and 1025 deletions

View File

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