From ad9d838d20f7b800dc9dbd7161ca2177346d0ae7 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 26 Aug 2022 22:30:11 -0400 Subject: [PATCH] *Fix typo --- src/rpc/server.ts | 4 ++-- src/types.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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