update statistics
This commit is contained in:
parent
6923ed95f1
commit
4fc2019770
|
@ -68,9 +68,9 @@ func DoTickPlatform(ctx context.Context, wg *sync.WaitGroup, duration time.Durat
|
|||
}
|
||||
|
||||
func main() {
|
||||
VP = viperx.GetViper("config", "yaml")
|
||||
VP = viperx.GetViper("config.yaml")
|
||||
// mongo
|
||||
vp := viperx.GetViper("mongo", "yaml")
|
||||
vp := viperx.GetViper("mongo.yaml")
|
||||
// mongo初始化
|
||||
conf := &mongox.Config{}
|
||||
err := vp.Unmarshal(conf)
|
||||
|
@ -81,7 +81,7 @@ func main() {
|
|||
defer mongox.Close()
|
||||
|
||||
// mysql
|
||||
vp = viperx.GetViper("mysql", "yaml")
|
||||
vp = viperx.GetViper("mysql.yaml")
|
||||
myConf := &mysqlx.Config{}
|
||||
err = vp.Unmarshal(myConf)
|
||||
if err != nil {
|
||||
|
|
|
@ -35,9 +35,9 @@ func main() {
|
|||
logger.Logger.Flush()
|
||||
logger.Logger.Close()
|
||||
}()
|
||||
VP = viperx.GetViper("config", "yaml")
|
||||
VP = viperx.GetViper("config.yaml")
|
||||
// mongo
|
||||
vp := viperx.GetViper("mongo", "yaml")
|
||||
vp := viperx.GetViper("mongo.yaml")
|
||||
// mongo初始化
|
||||
conf := &mongox.Config{}
|
||||
err := vp.Unmarshal(conf)
|
||||
|
@ -48,7 +48,7 @@ func main() {
|
|||
defer mongox.Close()
|
||||
|
||||
// mysql
|
||||
vp = viperx.GetViper("mysql", "yaml")
|
||||
vp = viperx.GetViper("mysql.yaml")
|
||||
myConf := &mysqlx.Config{}
|
||||
err = vp.Unmarshal(myConf)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue