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({
|
||||
components,
|
||||
}, devChannel);
|
||||
console.log("versionInfo", versionInfo);
|
||||
} catch (error: unknown) {
|
||||
const jsonRpcError = error as JsonRpcError;
|
||||
handleVersionUpdateError(jsonRpcError);
|
||||
|
|
|
|||
|
|
@ -262,7 +262,10 @@ export async function checkUpdateComponents(params: updateParams, includePreRele
|
|||
params,
|
||||
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,
|
||||
});
|
||||
if (response.error) throw response.error;
|
||||
|
|
|
|||
Loading…
Reference in New Issue