fix(be):使用初始化init 初始化一些参数

This commit is contained in:
teaser
2021-03-20 22:38:22 +08:00
committed by dushixiang
parent 0bef7d3040
commit 95a50b332c
5 changed files with 20 additions and 6 deletions

View File

@ -69,3 +69,7 @@ func NewStore() *TunStore {
store := TunStore{sync.Map{}}
return &store
}
func init() {
Store = NewStore()
}