aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/dbasik-api/main.go
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-04-10 19:33:21 +0100
committerMatthew Lemon <y@yulqen.org>2024-04-10 19:33:21 +0100
commite69391d4f309f6268440632585bbddf3a2a5bd60 (patch)
tree9e0faa4a92f06dbd8c228ba80752ea5f4d89dd17 /cmd/dbasik-api/main.go
parentd36c48b3251b9da483f06318ecaa14b9a4fa7118 (diff)
First introduction of migrations using golang-migrate
Diffstat (limited to '')
-rw-r--r--cmd/dbasik-api/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/dbasik-api/main.go b/cmd/dbasik-api/main.go
index e86f91c..f132c50 100644
--- a/cmd/dbasik-api/main.go
+++ b/cmd/dbasik-api/main.go
@@ -73,8 +73,8 @@ func main() {
//Read connection pool settings (explained in Configuring the pool in the book)
flag.IntVar(&cfg.db.maxOpenConns, "db-max-open-conns", 25, "PostgreSQL max open connections")
- flag.IntVar(&cfg.db.maxIdleConns, "db-max-idel-conns", 25, "PostgreSQL max idle connections")
- flag.StringVar(&cfg.db.maxIdleTime, "db-max-idel-conns", "15m", "PostgreSQL max connection idle time")
+ flag.IntVar(&cfg.db.maxIdleConns, "db-max-idle-conns", 25, "PostgreSQL max idle connections")
+ flag.StringVar(&cfg.db.maxIdleTime, "db-max-idle-time", "15m", "PostgreSQL max connection idle time")
flag.Parse()