修复「接入网关」无法使用的问题 fixed #207 #218

This commit is contained in:
dushixiang
2022-01-23 22:42:47 +08:00
parent a1a9ca2596
commit 809118f3e9
15 changed files with 83 additions and 53 deletions

View File

@ -25,7 +25,7 @@ func NewManager() *Manager {
}
}
func (m *Manager) Run() {
func (m *Manager) Start() {
for {
select {
case s := <-m.Add:
@ -66,5 +66,5 @@ var GlobalSecurityManager *Manager
func init() {
GlobalSecurityManager = NewManager()
go GlobalSecurityManager.Run()
go GlobalSecurityManager.Start()
}