*Fix typo
This commit is contained in:
parent
d73bb04a3d
commit
ad9d838d20
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue