From 695658a7c603bf854162cf1db31e2d5f8d19c270 Mon Sep 17 00:00:00 2001 From: myk bilokonsky Date: Mon, 10 Apr 2017 00:25:55 +0200 Subject: added config --- index.js | 4 +--- 1 file changed, 1 insertion(+), 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 -- cgit