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.
This commit is contained in:
Vladimir Starkov 2016-10-22 21:16:05 +02:00 committed by Guillermo Rauch
parent 7d0c81402e
commit 3f772311db

View file

@ -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);
}