From 5cdbc4b972a1c2e9abbbcac666f59773c963603a Mon Sep 17 00:00:00 2001 From: Franciszek Okrzesik Date: Tue, 19 Feb 2019 10:26:55 +0100 Subject: [PATCH] Allow setting polling delay through settings variable I find it very useful when I can change all settings using the setting object. Setting polling delay through env variable seems unintuitive --- packages/nexrender-worker/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nexrender-worker/src/index.js b/packages/nexrender-worker/src/index.js index f3634fbe..b65f8325 100644 --- a/packages/nexrender-worker/src/index.js +++ b/packages/nexrender-worker/src/index.js @@ -27,7 +27,7 @@ const nextJob = async (client, settings) => { } } - await delay(NEXRENDER_API_POLLING) + await delay(settings.polling || NEXRENDER_API_POLLING) } while (active) }