*Update force to bypassCache
This commit is contained in:
parent
ef62888c31
commit
d7b0c7d4de
|
@ -68,14 +68,14 @@ export default class RpcNetwork {
|
||||||
return this._ready;
|
return this._ready;
|
||||||
}
|
}
|
||||||
|
|
||||||
private _force: boolean = false;
|
private _bypassCache: boolean = false;
|
||||||
|
|
||||||
get force(): boolean {
|
get bypassCache(): boolean {
|
||||||
return this._force;
|
return this._bypassCache;
|
||||||
}
|
}
|
||||||
|
|
||||||
set force(value: boolean) {
|
set bypassCache(value: boolean) {
|
||||||
this._force = value;
|
this._bypassCache = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public addRelay(pubkey: string): void {
|
public addRelay(pubkey: string): void {
|
||||||
|
@ -102,13 +102,13 @@ export default class RpcNetwork {
|
||||||
query: string,
|
query: string,
|
||||||
chain: string,
|
chain: string,
|
||||||
data: object | any[] = {},
|
data: object | any[] = {},
|
||||||
force: boolean = false
|
bypassCache: boolean = false
|
||||||
): RpcQuery {
|
): RpcQuery {
|
||||||
return new RpcQuery(this, {
|
return new RpcQuery(this, {
|
||||||
query,
|
query,
|
||||||
chain,
|
chain,
|
||||||
data,
|
data,
|
||||||
force: force || this._force,
|
bypassCache: bypassCache || this._bypassCache,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
export interface RPCRequest {
|
export interface RPCRequest {
|
||||||
force: boolean;
|
bypassCache: boolean;
|
||||||
chain: string;
|
chain: string;
|
||||||
query: string;
|
query: string;
|
||||||
data: any;
|
data: any;
|
||||||
|
|
Loading…
Reference in New Issue