Compare commits
No commits in common. "038555ac627191dcad62e09d5e0e7c42748cc1ba" and "ae6609f0b07dea3afed3f528d42b55d771d81a3d" have entirely different histories.
038555ac62
...
ae6609f0b0
|
@ -9,6 +9,5 @@ export declare class PeerDiscovery {
|
|||
registerSource(name: string, source: PeerSource): boolean;
|
||||
removeSource(name: string): boolean;
|
||||
removeAllSources(): void;
|
||||
sourceExists(name: string): boolean;
|
||||
discover(pubkey: string | Buffer, options?: {}): Promise<Peer | boolean>;
|
||||
}
|
||||
|
|
|
@ -24,9 +24,6 @@ class PeerDiscovery {
|
|||
removeAllSources() {
|
||||
this._sources.clear();
|
||||
}
|
||||
sourceExists(name) {
|
||||
return this._sources.has(name);
|
||||
}
|
||||
async discover(pubkey, options = {}) {
|
||||
if (!b4a_1.default.isBuffer(pubkey)) {
|
||||
pubkey = b4a_1.default.from(pubkey, "hex");
|
||||
|
|
|
@ -36,10 +36,6 @@ 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