Skip to content

Commit 2f79b18

Browse files
author
zhangming03
committed
modify-config
1 parent 62a119b commit 2f79b18

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

store/postgresql/default_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"time"
99
)
1010

11-
func initConf() *postgresqlStore {
11+
func initConf() *PostgresqlStore {
1212
conf := &store.Config{
1313
Name: "Postgresql",
1414
Option: map[string]interface{}{
@@ -40,7 +40,7 @@ func initConf() *postgresqlStore {
4040
},*/
4141
},
4242
}
43-
obj := &postgresqlStore{}
43+
obj := &PostgresqlStore{}
4444
err := obj.Initialize(conf)
4545
fmt.Println(err)
4646

test/data/polaris-server.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -404,12 +404,12 @@ store:
404404
name: postgresql
405405
option:
406406
master:
407-
dbType: postgresql
408-
dbName: polaris_server
409-
dbUser: root ##DB_USER##
410-
dbPwd: polaris ##DB_PWD##
411-
dbAddr: "127.0.0.1" ##DB_ADDR##
412-
dbPort: 5432
407+
dbType: "postgres"
408+
dbName: "polaris_server"
409+
dbUser: "postgres" ##DB_USER##
410+
dbPwd: "aaaaaa" ##DB_PWD##
411+
dbAddr: "192.168.31.19" ##DB_ADDR##
412+
dbPort: "5432"
413413
maxOpenConns: -1
414414
maxIdleConns: -1
415415
connMaxLifetime: 300 # 单位秒

0 commit comments

Comments
 (0)