Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

increase timeout for update checks #928

Merged
merged 2 commits into from
Oct 29, 2016

Conversation

iamstarkov
Copy link
Contributor

PR is ready for code-review

It seems like, there are lots of them and GitHub is not happy.
So increasing timeout 6x should fix that. In the end there is no need
to check updates every 5 minutes.

Fix #880

It seems like, there are lots of them and GitHub is not happy.
So increasing timeout 6x should fix that. In the end there is no need
to check updates every 5 minutes.

Fix vercel#880
@albinekb
Copy link
Contributor

isn't checking for update every 30 min a bit too often? once a day would probably be enough? (since releases are days/weeks apart) and then have a manual way to check if you really want the new version asap?

Just a thought :)

@@ -19,13 +19,9 @@ function init() {

autoUpdater.setFeedURL(`${FEED_URL}/${version}`);

setTimeout(() => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now it won't check for update on startup? so if you start the app, use it for less than 30 minutes, it won't check at all 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are right

@iamstarkov
Copy link
Contributor Author

isn't checking for update every 30 min a bit too often?

idk, it was 5m before. On the other hand, once a day, is not that good, 'because you'll get update next day

@iamstarkov
Copy link
Contributor Author

lets start with 6x increase, we can find appropriate balance in the future

@albinekb
Copy link
Contributor

albinekb commented Oct 24, 2016

sounds fair 👍

@iamstarkov iamstarkov force-pushed the fix/increase-timeout-for-updates branch from 64c86ca to ca93934 Compare October 24, 2016 14:23
@rauchg rauchg merged commit 7d05d0f into vercel:master Oct 29, 2016
@rauchg
Copy link
Member

rauchg commented Oct 29, 2016

30 minutes is good. Think of Hyper more as a hot-reloadable website rather than a static app ;)

chabou added a commit to chabou/hyper that referenced this pull request Nov 2, 2016
* master:
  chore(package): update electron to version 1.4.5 (vercel#949)
  add onRendererWindow, because it actually available. check ./lib/utils/plugins.js:193 (vercel#924)
  increase timeout for update checks (vercel#928)
  Change URL regex - fixes vercel#867 (vercel#943)
  Make the close menu items less ambiguous
  Comply to XO's no-warning-comments rule
  Prefer default export to make XO happy (vercel#931)
  chore(package): update ms to version 0.7.2 (vercel#933)
  chore(package): update copy-webpack-plugin to version 4.0.0 (vercel#927)
  log plugins' errors in Electron console (vercel#923)
  Improve tabs title   (vercel#892)
  increase notification timeout up to 30m (vercel#913)
  Create github templates (vercel#919)
  chore(package): update electron to version 1.4.4 (vercel#907)
  Prevent Hterm to share same preferences between instances (vercel#906)
  0.8.3
  0.9.0
  Revert "Quick full screen (vercel#803)"
  Ignore file watch errors. Fixes vercelGH-225 (vercel#893)
chabou added a commit to chabou/hyper that referenced this pull request Nov 2, 2016
* master:
  chore(package): update electron to version 1.4.5 (vercel#949)
  add onRendererWindow, because it actually available. check ./lib/utils/plugins.js:193 (vercel#924)
  increase timeout for update checks (vercel#928)
  Change URL regex - fixes vercel#867 (vercel#943)
  Make the close menu items less ambiguous
  Comply to XO's no-warning-comments rule
  Prefer default export to make XO happy (vercel#931)
  chore(package): update ms to version 0.7.2 (vercel#933)
  chore(package): update copy-webpack-plugin to version 4.0.0 (vercel#927)
  log plugins' errors in Electron console (vercel#923)
  Improve tabs title   (vercel#892)
  increase notification timeout up to 30m (vercel#913)
  Create github templates (vercel#919)
  chore(package): update electron to version 1.4.4 (vercel#907)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants