From ae70eb1e17fefc3e48efaa60eeb34d2e2f9664e9 Mon Sep 17 00:00:00 2001 From: Paul Bouwer Date: Mon, 1 May 2017 05:50:46 +1000 Subject: [PATCH] Modify config watch interval to 2s (#1699) (#1772) --- app/config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/config.js b/app/config.js index 37c881a6..1759b08c 100644 --- a/app/config.js +++ b/app/config.js @@ -39,7 +39,8 @@ const watchers = []; let cfg = {}; function watch() { - gaze(path, function (err) { + // watch for changes on config every 2s + gaze(path, {interval: 2000}, function (err) { if (err) { throw err; }