*Return the relay object, not the pubkey
This commit is contained in:
parent
2f2bce84eb
commit
92fe42c37e
|
@ -99,7 +99,9 @@ export default class RpcNetwork {
|
|||
throw Error("no available relay");
|
||||
}
|
||||
|
||||
return Array.from(relays)[Math.floor(Math.random() * relays.size)];
|
||||
return this._relays.get(
|
||||
Array.from(relays)[Math.floor(Math.random() * relays.size)]
|
||||
);
|
||||
}
|
||||
|
||||
public getRelay(pubkey: string) {
|
||||
|
|
Loading…
Reference in New Issue