mirror of https://github.com/waku-org/js-waku.git
Ensure node address is returned for Object type responses
This commit is contained in:
parent
5443e3b4a7
commit
ff829fc43e
|
@ -61,7 +61,7 @@ export async function getBootstrapNodes(
|
|||
|
||||
if (typeof nodes === 'object') {
|
||||
nodes = Object.values(nodes);
|
||||
getPseudoRandomSubset(nodes, wantedNumber);
|
||||
return getPseudoRandomSubset(nodes, wantedNumber);
|
||||
}
|
||||
|
||||
throw `Failed to retrieve bootstrap nodes: response format is not supported: ${JSON.stringify(
|
||||
|
|
Loading…
Reference in New Issue