mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
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:
parent
7d0c81402e
commit
3f772311db
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue