*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,
RPCBroadcastRequest,
RPCBroadcastResponse,
RPCCacheItem,
RPCRequest,
RPCResponse,
} from "@lumeweb/relay-types";
@ -58,8 +59,8 @@ const plugin: Plugin = {
return {
data: true,
...cache[req]?.value,
signature: cache[req]?.signature,
...cache.get<RPCCacheItem>(req)?.value,
signature: cache.get<RPCCacheItem>(req)?.signature,
};
},
});