[ Cmii ] [ Octopus ] - reformat agent-go - 1

This commit is contained in:
zeaslity
2024-03-29 11:39:14 +08:00
parent aa4412f042
commit 1be48aaac2
52 changed files with 683 additions and 557 deletions

View File

@@ -2,13 +2,11 @@ package g
import (
"github.com/panjf2000/ants/v2"
"github.com/spf13/viper"
"wdd.io/agent-common/logger"
)
type Global struct {
AgentHasRegister bool
AgentConfig *viper.Viper
P *ants.Pool
}
@@ -41,7 +39,6 @@ var G = NewGlobal(
func NewGlobal(pool *ants.Pool) *Global {
return &Global{
AgentHasRegister: false,
AgentConfig: nil,
P: pool,
}
}