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
eef6ff89c3
commit
a95315eeb5
|
@ -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