*Fix typo

This commit is contained in:
Derrick Hammer 2022-08-26 22:30:11 -04:00
parent d73bb04a3d
commit ad9d838d20
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
2 changed files with 3 additions and 3 deletions

View File

@ -127,7 +127,7 @@ export class RPCServer {
private async waitOnRequestLock(request: RPCRequest) { private async waitOnRequestLock(request: RPCRequest) {
let method = this.getMethodByRequest(request) as RPCMethod; let method = this.getMethodByRequest(request) as RPCMethod;
if (!method.cachable) { if (!method.cacheable) {
return; return;
} }
@ -151,7 +151,7 @@ export class RPCServer {
private getCachedRequest(request: RPCRequest): RPCResponse | undefined { private getCachedRequest(request: RPCRequest): RPCResponse | undefined {
let method = this.getMethodByRequest(request) as RPCMethod; let method = this.getMethodByRequest(request) as RPCMethod;
if (!method.cachable) { if (!method.cacheable) {
return; return;
} }

View File

@ -15,7 +15,7 @@ export interface RPCResponse {
} }
export interface RPCMethod { export interface RPCMethod {
cachable: boolean; cacheable: boolean;
handler: ( handler: (
request: RPCRequest, request: RPCRequest,
sendStream: (stream: AsyncIterable<Uint8Array>) => void sendStream: (stream: AsyncIterable<Uint8Array>) => void