*Update to use NodeCache api

This commit is contained in:
Derrick Hammer 2022-12-03 22:55:39 -05:00
parent 616b74a820
commit 64611618de
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 3 additions and 2 deletions

View File

@ -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,
}; };
}, },
}); });