From 5554019608b13e4664f3b880753d347a410062c6 Mon Sep 17 00:00:00 2001 From: "Aeneas Rekkas (arekkas)" Date: Sun, 15 Jan 2017 14:58:52 +0100 Subject: [PATCH] sql: resolve wrongly named config reader --- config/backend_connections.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/backend_connections.go b/config/backend_connections.go index 172ce56d33d..00e2ec4452c 100644 --- a/config/backend_connections.go +++ b/config/backend_connections.go @@ -78,7 +78,7 @@ func (c *SQLConnection) GetDatabase() *sqlx.DB { maxConnLifetime := time.Duration(0) if v := c.URL.Query().Get("max_conn_lifetime"); v != "" { - s, err := time.ParseDuration(maxConnLifetime) + s, err := time.ParseDuration(v) if err != nil { logrus.Warnf("max_conn_lifetime value %s could not be parsed to int: %s", v, err) } else {