*Skip cache update if error is ERR_NOT_READY
This commit is contained in:
parent
a4ddcdf518
commit
830aa19a4f
|
@ -134,7 +134,10 @@ async function processRequest(request: RPCRequest): Promise<RPCResponse> {
|
||||||
? { error }
|
? { error }
|
||||||
: (rpcResp as unknown as JSONRPCResponseWithResult).result;
|
: (rpcResp as unknown as JSONRPCResponseWithResult).result;
|
||||||
|
|
||||||
if (!processedRequests.get(reqId) || request.force) {
|
if (
|
||||||
|
(!processedRequests.get(reqId) || request.force) &&
|
||||||
|
dbData.data?.error !== ERR_NOT_READY
|
||||||
|
) {
|
||||||
processedRequests.set(reqId, dbData);
|
processedRequests.set(reqId, dbData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue