*Update to use NodeCache api
This commit is contained in:
parent
616b74a820
commit
64611618de
|
@ -4,6 +4,7 @@ import {
|
||||||
PluginAPI,
|
PluginAPI,
|
||||||
RPCBroadcastRequest,
|
RPCBroadcastRequest,
|
||||||
RPCBroadcastResponse,
|
RPCBroadcastResponse,
|
||||||
|
RPCCacheItem,
|
||||||
RPCRequest,
|
RPCRequest,
|
||||||
RPCResponse,
|
RPCResponse,
|
||||||
} from "@lumeweb/relay-types";
|
} from "@lumeweb/relay-types";
|
||||||
|
@ -58,8 +59,8 @@ const plugin: Plugin = {
|
||||||
|
|
||||||
return {
|
return {
|
||||||
data: true,
|
data: true,
|
||||||
...cache[req]?.value,
|
...cache.get<RPCCacheItem>(req)?.value,
|
||||||
signature: cache[req]?.signature,
|
signature: cache.get<RPCCacheItem>(req)?.signature,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue