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