[ Cmii ] [ Octopus ] - reformat agent-go - 1
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user