chore: cleanup
This commit is contained in:
parent
ab01312f8d
commit
b53878c291
@ -132,12 +132,12 @@ function assertRelease() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let lastChecking = Date.now();
|
let lastChecking = Date.now();
|
||||||
let lastResult:CheckResult;
|
let lastResult: CheckResult;
|
||||||
export async function checkUpdate(APPKEY: string, isRetry?: boolean) {
|
export async function checkUpdate(APPKEY: string, isRetry?: boolean) {
|
||||||
assertRelease();
|
assertRelease();
|
||||||
const now = Date.now();
|
const now = Date.now();
|
||||||
if (lastResult && now - lastChecking < 1000 * 60) {
|
if (lastResult && now - lastChecking < 1000 * 60) {
|
||||||
logger('repeated checking, ignored');
|
// logger('repeated checking, ignored');
|
||||||
return lastResult;
|
return lastResult;
|
||||||
}
|
}
|
||||||
lastChecking = now;
|
lastChecking = now;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user