From 21341f6af4fdf9b83588a83775a305e9b4be3d45 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 4 Jul 2023 04:12:20 -0400 Subject: [PATCH] refactor: DHTCache no longer used --- src/rpc.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/rpc.ts b/src/rpc.ts index 8893b03..47751cc 100644 --- a/src/rpc.ts +++ b/src/rpc.ts @@ -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;