This is an automated email from the ASF dual-hosted git repository.
zhongxjian pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-kubernetes.git
The following commit(s) were added to refs/heads/master by this push:
new 5999e73d [horus] fix db typo (#421)
5999e73d is described below
commit 5999e73df76df7d19d5ea4fad71a80c390974d72
Author: mfordjody <[email protected]>
AuthorDate: Thu Oct 3 15:01:01 2024 +0800
[horus] fix db typo (#421)
---
app/horus/base/db/db.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/app/horus/base/db/db.go b/app/horus/base/db/db.go
index a89e0392..16c8c96c 100644
--- a/app/horus/base/db/db.go
+++ b/app/horus/base/db/db.go
@@ -64,9 +64,9 @@ var (
)
func InitDataBase(mc *config.MysqlConfiguration) error {
- data, err := xorm.NewEngine("mysql", mc.Addr)
+ data, err := xorm.NewEngine("mysql", mc.Address)
if err != nil {
- fmt.Printf("Unable to connect to mysql server:\n addr: %s\n
err: %v\n", mc.Addr, err)
+ fmt.Printf("Unable to connect to mysql server:\n addr: %s\n
err: %v\n", mc.Address, err)
}
data.Logger().SetLevel(xlog.LOG_INFO)
data.ShowSQL(mc.Debug)