Skip to content

Commit

Permalink
sql: resolve wrongly named config reader
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeneas Rekkas (arekkas) committed Jan 15, 2017
1 parent d618c10 commit 5554019
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/backend_connections.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5554019

Please sign in to comment.