This repository has been archived on 2026-01-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Game/Server/scene/app/db.go
2025-06-29 10:39:00 +08:00

21 lines
276 B
Go

package app
import (
"common/db/etcd"
"scene/config"
)
func (p *Program) initDB(cfg *config.Config) error {
// ETCD
if err := etcd.Init(cfg.DB.Etcd.Address); err != nil {
return err
}
return nil
}
func (p *Program) stopDB() error {
_ = etcd.Close()
return nil
}