forked from 1b-agent/opencadstudio-upstream
fix(update): delay notifications one hour
This commit is contained in:
1 parent
0936e6e4df
commit
62818cfd7b
1 file changed
+3
-3
@@ -14,11 +14,11 @@ pub const RELEASES_PAGE: &str =
|
|||||||
|
|
||||||
/// Minimum age before a freshly-published release is offered to the user.
|
/// Minimum age before a freshly-published release is offered to the user.
|
||||||
/// GitHub Actions takes ~15 min to build and attach the platform binaries
|
/// GitHub Actions takes ~15 min to build and attach the platform binaries
|
||||||
/// after a tag is pushed, so suppressing notifications for the first 30
|
/// after a tag is pushed, so suppressing notifications for the first hour
|
||||||
/// minutes prevents users from clicking through to a release page whose
|
/// prevents users from clicking through to a release page whose
|
||||||
/// asset list is still empty.
|
/// asset list is still empty.
|
||||||
#[cfg(not(target_arch = "wasm32"))]
|
#[cfg(not(target_arch = "wasm32"))]
|
||||||
const MIN_RELEASE_AGE_SECS: u64 = 30 * 60;
|
const MIN_RELEASE_AGE_SECS: u64 = 60 * 60;
|
||||||
|
|
||||||
/// What `check_for_update` reports when a newer release exists.
|
/// What `check_for_update` reports when a newer release exists.
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
|
|||||||
Reference in new issue
Block a user