diff --git a/sys/db/db.go b/sys/db/db.go index bc9b4e237..dcf46965c 100644 --- a/sys/db/db.go +++ b/sys/db/db.go @@ -38,8 +38,8 @@ func (this *DB) init() (err error) { } func (this *DB) Local() *DBConn { - if this.cross == nil { - log.Panic("CrossDBConn on init") + if this.local == nil { + log.Panic("LocalDBConn on init") } return this.local }