refactor: DHTCache no longer used

This commit is contained in:
Derrick Hammer 2023-07-04 04:12:20 -04:00
parent 0030db4237
commit 21341f6af4
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 3 deletions

View File

@ -1,6 +1,5 @@
import type EventEmitter from "events";
import type NodeCache from "node-cache";
import type DHTCache from "@lumeweb/dht-cache";
export interface RPCRequest {
module: string;
@ -49,7 +48,7 @@ export declare class RPCServer extends EventEmitter {
registerMethod(
moduleName: string,
methodName: string,
options: RPCMethod
options: RPCMethod,
): void;
public getMethods(): string[];
public setup(stream: any): any;
@ -59,7 +58,6 @@ export declare class RPCServer extends EventEmitter {
}
export declare class RPCCache extends EventEmitter {
get data(): NodeCache;
get dhtCache(): DHTCache;
constructor(server: RPCServer);
public signResponse(item: RPCCacheItem): any;
public verifyResponse(pubkey: Buffer, item: RPCCacheItem): boolean | Buffer;