Fix Config Comments in DButil Package (#2119)

* Fix Config Comments

* Updating lock file

* Update lock file

* Set Actual time.Duration

* Fix Issue
This commit is contained in:
Stefan Benten 2019-06-05 01:53:38 +02:00 committed by JT Olio
parent d68c993775
commit 23213a7a29
2 changed files with 6 additions and 6 deletions

View File

@ -11,9 +11,9 @@ import (
)
var (
maxIdleConns = flag.Int("db.max_idle_conns", 50, "default value for database connections, -1 means the stdlib default")
maxOpenConns = flag.Int("db.max_open_conns", 100, "default value for database connections, -1 means the stdlib default")
connMaxLifetime = flag.Duration("db.conn_max_lifetime", -1, "default value for database connections, -1 means the stdlib default")
maxIdleConns = flag.Int("db.max_idle_conns", 50, "Maximum Amount of Idle Database connections, -1 means the stdlib default")
maxOpenConns = flag.Int("db.max_open_conns", 100, "Maximum Amount of Open Database connections, -1 means the stdlib default")
connMaxLifetime = flag.Duration("db.conn_max_lifetime", -1, "Maximum Database Connection Lifetime, -1ns means the stdlib default")
)
// Configure Sets Connection Boundaries and adds db_stats monitoring to monkit

View File

@ -40,13 +40,13 @@
# satellite database connection string
# database: "postgres://"
# default value for database connections, -1 means the stdlib default
# Maximum Database Connection Lifetime, -1ns means the stdlib default
# db.conn_max_lifetime: -1ns
# default value for database connections, -1 means the stdlib default
# Maximum Amount of Idle Database connections, -1 means the stdlib default
# db.max_idle_conns: 50
# default value for database connections, -1 means the stdlib default
# Maximum Amount of Open Database connections, -1 means the stdlib default
# db.max_open_conns: 100
# address to listen on for debug endpoints