Skip to content

Commit e9470ff

Browse files
committed
update config template
1 parent 51b1e79 commit e9470ff

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

coordinator/cmd/proxy/app/app.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ func action(ctx *cli.Context) error {
5252

5353
var db *gorm.DB
5454
if dbCfg := cfg.ProxyManager.DB; dbCfg != nil {
55+
log.Info("Apply persistent storage", "via", cfg.ProxyManager.DB.DSN)
5556
db, err = database.InitDB(cfg.ProxyManager.DB)
5657
if err != nil {
5758
log.Crit("failed to init db connection", "err", err)

coordinator/conf/config_proxy.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,13 @@
1212
"verifier": {
1313
"min_prover_version": "v4.4.45",
1414
"verifiers": []
15-
}
15+
},
16+
"db": {
17+
"driver_name": "postgres",
18+
"dsn": "postgres://localhost/scroll?sslmode=disable",
19+
"maxOpenNum": 200,
20+
"maxIdleNum": 20
21+
}
1622
},
1723
"coordinators": {
1824
"sepolia": {
@@ -21,11 +27,5 @@
2127
"retry_wait_time_sec": 10,
2228
"connection_timeout_sec": 30
2329
}
24-
},
25-
"db": {
26-
"driver_name": "postgres",
27-
"dsn": "postgres://localhost/scroll?sslmode=disable",
28-
"maxOpenNum": 200,
29-
"maxIdleNum": 20
30-
}
30+
}
3131
}

0 commit comments

Comments
 (0)