mirror of https://github.com/jetkvm/kvm.git
chore: disable retry for checkUpdateComponents RPC
This commit is contained in:
parent
95be473608
commit
f1eb38fd5e
|
|
@ -208,7 +208,6 @@ export default function SettingsAdvancedRoute() {
|
||||||
versionInfo = await checkUpdateComponents({
|
versionInfo = await checkUpdateComponents({
|
||||||
components,
|
components,
|
||||||
}, devChannel);
|
}, devChannel);
|
||||||
console.log("versionInfo", versionInfo);
|
|
||||||
} catch (error: unknown) {
|
} catch (error: unknown) {
|
||||||
const jsonRpcError = error as JsonRpcError;
|
const jsonRpcError = error as JsonRpcError;
|
||||||
handleVersionUpdateError(jsonRpcError);
|
handleVersionUpdateError(jsonRpcError);
|
||||||
|
|
|
||||||
|
|
@ -262,7 +262,10 @@ export async function checkUpdateComponents(params: updateParams, includePreRele
|
||||||
params,
|
params,
|
||||||
includePreRelease,
|
includePreRelease,
|
||||||
},
|
},
|
||||||
maxAttempts: UPDATE_STATUS_RPC_MAX_ATTEMPTS,
|
// maxAttempts is set to 1,
|
||||||
|
// because it currently retry for all errors,
|
||||||
|
// and we don't want to retry if the error is not a network error
|
||||||
|
maxAttempts: 1,
|
||||||
attemptTimeoutMs: UPDATE_STATUS_RPC_TIMEOUT_MS,
|
attemptTimeoutMs: UPDATE_STATUS_RPC_TIMEOUT_MS,
|
||||||
});
|
});
|
||||||
if (response.error) throw response.error;
|
if (response.error) throw response.error;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue