*Fix typo
This commit is contained in:
parent
d73bb04a3d
commit
ad9d838d20
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ export interface RPCResponse {
|
|||
}
|
||||
|
||||
export interface RPCMethod {
|
||||
cachable: boolean;
|
||||
cacheable: boolean;
|
||||
handler: (
|
||||
request: RPCRequest,
|
||||
sendStream: (stream: AsyncIterable<Uint8Array>) => void
|
||||
|
|
Loading…
Reference in New Issue