summary refs log tree commit diff
diff options
context:
space:
mode:
authormyk bilokonsky <mbilokonsky@gmail.com>2017-04-10 00:25:55 +0200
committermyk bilokonsky <mbilokonsky@gmail.com>2017-04-10 00:25:55 +0200
commit695658a7c603bf854162cf1db31e2d5f8d19c270 (patch)
tree9608dcd65c6483652358e494c68aa3d7b1d45bfc
parentb1033e1caa7755abcd616a1c25f7ec4642821382 (diff)
added config
-rw-r--r--index.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/index.js b/index.js
index e447e52..2701a24 100644
--- a/index.js
+++ b/index.js
@@ -21,12 +21,10 @@ var config = {
   idleTimeoutMillis: 30000, // how long a client is allowed to remain idle before being closed
 };
 
-var pg = require('pg');
-
 // instantiate a new client
 // the client will read connection information from
 // the same environment variables used by postgres cli tools
-var client = new pg.Client();
+var client = new pg.Client(config);
 
 function cycle() {
   // connect to our database