continued auth system
This commit is contained in:
@@ -7,11 +7,11 @@ import (
|
||||
)
|
||||
|
||||
func InitDBConn(conf *util.Config) (*DBConn, error) {
|
||||
hot, err := db_hot.InitDBHotConn()
|
||||
hot, err := db_hot.InitDBHotConn(conf)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
cold, err := db_cold.InitDBColdConn()
|
||||
cold, err := db_cold.InitDBColdConn(conf)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -19,6 +19,6 @@ func InitDBConn(conf *util.Config) (*DBConn, error) {
|
||||
}
|
||||
|
||||
type DBConn struct {
|
||||
hot db_hot.DBHotConn
|
||||
cold db_cold.DBColdConn
|
||||
Hot *db_hot.DBHotConn
|
||||
Cold *db_cold.DBColdConn
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user