Modify config watch interval to 2s (#1699) (#1772)

This commit is contained in:
Paul Bouwer 2017-05-01 05:50:46 +10:00 committed by Philippe Potvin
parent af21493e2b
commit ae70eb1e17

View file

@ -39,7 +39,8 @@ const watchers = [];
let cfg = {}; let cfg = {};
function watch() { function watch() {
gaze(path, function (err) { // watch for changes on config every 2s
gaze(path, {interval: 2000}, function (err) {
if (err) { if (err) {
throw err; throw err;
} }