*Add sourceExists
This commit is contained in:
parent
ae6609f0b0
commit
b6469a6a45
|
@ -36,6 +36,10 @@ export class PeerDiscovery {
|
||||||
this._sources.clear();
|
this._sources.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public sourceExists(name: string): boolean {
|
||||||
|
return this._sources.has(name);
|
||||||
|
}
|
||||||
|
|
||||||
public async discover(
|
public async discover(
|
||||||
pubkey: string | Buffer,
|
pubkey: string | Buffer,
|
||||||
options = {}
|
options = {}
|
||||||
|
|
Loading…
Reference in New Issue