Skip to content

Commit

Permalink
Intervals needed adjustment
Browse files Browse the repository at this point in the history
- Heartbeat should run frequently, so updates aren't triggered primarily
  by user actions (changing the active space on macOS).
- The satellite config shouldn't need to be updated for a few minutes.
  • Loading branch information
KYDronePilot committed Dec 17, 2020
1 parent 7a9d60f commit fc23fdb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "space-eye",
"version": "1.0.3",
"version": "1.0.4",
"description": "Live satellite imagery for your desktop background",
"main": "./dist/main.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import { setWindowVisibility, startUpdateChecking } from './updater'
import { formatAxiosError } from './utils'
import { WallpaperManager } from './wallpaper_manager'

const HEARTBEAT_INTERVAL = 600000
const HEARTBEAT_INTERVAL = 60000
let heartbeatHandle: number

// let win: BrowserWindow | null
Expand Down
2 changes: 1 addition & 1 deletion src/main/satellite_config_store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { RequestError } from './errors'
const log = electronLog.scope('satellite-config-store')

// Time in seconds before invalidating the cached config.
const INVALIDATION_TIMEOUT = 60
const INVALIDATION_TIMEOUT = 900

// URL to download the config
const CONFIG_URL = 'https://spaceeye-satellite-configs.s3.us-east-2.amazonaws.com/1.1.0/config.json'
Expand Down

0 comments on commit fc23fdb

Please sign in to comment.