*should be >=
This commit is contained in:
parent
7399d4aa35
commit
6fa058d0a0
|
@ -96,7 +96,7 @@ export default class WisdomRpcQuery extends RpcQueryBase {
|
|||
const list: string[] = [];
|
||||
let available = this._network.relays;
|
||||
|
||||
while (list.length < this._network.maxRelays) {
|
||||
while (list.length <= this._network.maxRelays) {
|
||||
const item = Math.floor(Math.random() * available.length);
|
||||
list.push(available[item]);
|
||||
available.splice(item, 1);
|
||||
|
|
Loading…
Reference in New Issue