This commit is contained in:
meixiongfeng 2022-08-10 09:54:18 +08:00
parent 1785037abb
commit 5b9b73f76b

View File

@ -38,8 +38,8 @@ func (this *DB) init() (err error) {
} }
func (this *DB) Local() *DBConn { func (this *DB) Local() *DBConn {
if this.cross == nil { if this.local == nil {
log.Panic("CrossDBConn on init") log.Panic("LocalDBConn on init")
} }
return this.local return this.local
} }