update statistics

This commit is contained in:
sk 2024-12-06 10:15:17 +08:00
parent 6923ed95f1
commit 4fc2019770
2 changed files with 6 additions and 6 deletions

View File

@ -68,9 +68,9 @@ func DoTickPlatform(ctx context.Context, wg *sync.WaitGroup, duration time.Durat
} }
func main() { func main() {
VP = viperx.GetViper("config", "yaml") VP = viperx.GetViper("config.yaml")
// mongo // mongo
vp := viperx.GetViper("mongo", "yaml") vp := viperx.GetViper("mongo.yaml")
// mongo初始化 // mongo初始化
conf := &mongox.Config{} conf := &mongox.Config{}
err := vp.Unmarshal(conf) err := vp.Unmarshal(conf)
@ -81,7 +81,7 @@ func main() {
defer mongox.Close() defer mongox.Close()
// mysql // mysql
vp = viperx.GetViper("mysql", "yaml") vp = viperx.GetViper("mysql.yaml")
myConf := &mysqlx.Config{} myConf := &mysqlx.Config{}
err = vp.Unmarshal(myConf) err = vp.Unmarshal(myConf)
if err != nil { if err != nil {

View File

@ -35,9 +35,9 @@ func main() {
logger.Logger.Flush() logger.Logger.Flush()
logger.Logger.Close() logger.Logger.Close()
}() }()
VP = viperx.GetViper("config", "yaml") VP = viperx.GetViper("config.yaml")
// mongo // mongo
vp := viperx.GetViper("mongo", "yaml") vp := viperx.GetViper("mongo.yaml")
// mongo初始化 // mongo初始化
conf := &mongox.Config{} conf := &mongox.Config{}
err := vp.Unmarshal(conf) err := vp.Unmarshal(conf)
@ -48,7 +48,7 @@ func main() {
defer mongox.Close() defer mongox.Close()
// mysql // mysql
vp = viperx.GetViper("mysql", "yaml") vp = viperx.GetViper("mysql.yaml")
myConf := &mysqlx.Config{} myConf := &mysqlx.Config{}
err = vp.Unmarshal(myConf) err = vp.Unmarshal(myConf)
if err != nil { if err != nil {