bitcobblers / multiminer-redux

Port/Re-write of Multiminer, only now built as a Tauri app instead of Electron.
2 stars 0 forks source link

Implement refresh policy for miner releases #25

Open mvastarelli opened 4 months ago

mvastarelli commented 4 months ago

The app currently refreshes all miner releases on startup. This is a problematic because GH API is pretty aggressive about rate limiting API requests and each registered miner (7 currently) requires a separate API call.

Update the logic so that sync occurs only when:

  1. There are no cached miner releases (i.e., first time the app runs).
  2. It has been at least 1 day since the last time it ran (add a new internal setting for this).
  3. The user clicks an "update" button to request it.

For 3, we may want the UI to to implement some kind of catch logic to prevent the user from spamming it. Something similar already exists for the Unmineable graph refresh buttons.