diff --git a/src/rpc/server.ts b/src/rpc/server.ts index 31b6104..3454b30 100644 --- a/src/rpc/server.ts +++ b/src/rpc/server.ts @@ -127,7 +127,7 @@ export class RPCServer { private async waitOnRequestLock(request: RPCRequest) { let method = this.getMethodByRequest(request) as RPCMethod; - if (!method.cachable) { + if (!method.cacheable) { return; } @@ -151,7 +151,7 @@ export class RPCServer { private getCachedRequest(request: RPCRequest): RPCResponse | undefined { let method = this.getMethodByRequest(request) as RPCMethod; - if (!method.cachable) { + if (!method.cacheable) { return; } diff --git a/src/types.ts b/src/types.ts index 4661bab..4f267e6 100644 --- a/src/types.ts +++ b/src/types.ts @@ -15,7 +15,7 @@ export interface RPCResponse { } export interface RPCMethod { - cachable: boolean; + cacheable: boolean; handler: ( request: RPCRequest, sendStream: (stream: AsyncIterable) => void