From 3f772311dbe3b01acb56815f4c169c9490d729af Mon Sep 17 00:00:00 2001 From: Vladimir Starkov Date: Sat, 22 Oct 2016 21:16:05 +0200 Subject: [PATCH] increase notification timeout up to 30m (#913) fetchNotifications error can happen in two cases: * https://hyper-news.now.sh is down * you are offline In both cases it doesn't hurt to wait half an hour. PS. right now it hurts, when you are offline and developing anything for Hyper, `console.error` logs the same error every 10s and ruins your investigation. --- app/notifications.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/notifications.js b/app/notifications.js index 18b07947..7c2d9294 100644 --- a/app/notifications.js +++ b/app/notifications.js @@ -12,7 +12,7 @@ const matchVersion = versions => ( module.exports = function fetchNotifications(win) { const {rpc} = win; const retry = err => { - setTimeout(() => fetchNotifications(win), ms(err ? '10s' : '5m')); + setTimeout(() => fetchNotifications(win), ms('30m')); if (err) { console.error('Notification messages fetch error', err.stack); }