Move statement timeout to env variable (#271)

* Move statement timeout to env variable

* Fallback on statement timeout
This commit is contained in:
Ben Halpern 2018-05-02 15:03:36 -04:00 committed by GitHub
parent 808ea3a466
commit 881195be04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,7 +23,7 @@ default: &default
connect_timeout: 2
checkout_timeout: 2
variables:
statement_timeout: 2500
statement_timeout: <%= ENV['STATEMENT_TIMEOUT'] || 2500 %>
development:
<<: *default