From 532c0b0dd823494de4e84ef28c32383e0ff70057 Mon Sep 17 00:00:00 2001
From: Seva Baskin <vabaskin@gmail.com>
Date: Fri, 13 Jan 2017 15:02:54 +0000
Subject: [PATCH] Allow to specify custom polling time

---
 server.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/server.js b/server.js
index 2aec673..13d4092 100644
--- a/server.js
+++ b/server.js
@@ -7,6 +7,7 @@ const FastBootAppServer = require('fastboot-app-server');
 
 const S3_BUCKET    = process.env.FASTBOOT_S3_BUCKET;
 const S3_KEY       = process.env.FASTBOOT_S3_KEY;
+const S3_POLL_TIME = process.env.FASTBOOT_S3_POLL_TIME;
 const REDIS_HOST   = process.env.FASTBOOT_REDIS_HOST;
 const REDIS_PORT   = process.env.FASTBOOT_REDIS_PORT;
 const REDIS_EXPIRY = process.env.FASTBOOT_REDIS_EXPIRY;
@@ -20,7 +21,8 @@ let downloader = new S3Downloader({
 
 let notifier = new S3Notifier({
   bucket: S3_BUCKET,
-  key: S3_KEY
+  key: S3_KEY,
+  poll: S3_POLL_TIME
 });
 
 let cache;