mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-24 06:34:42 +08:00
mysql模块添加初始化函数
This commit is contained in:
@@ -35,8 +35,8 @@ type DBResult struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//OnInit ...
|
//OnInit ...
|
||||||
func (slf *DBModule) Init() {
|
func (slf *DBModule) OnInit() error {
|
||||||
slf.Connect(100)
|
return slf.Connect(100)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Next ...
|
// Next ...
|
||||||
|
|||||||
Reference in New Issue
Block a user