mirror of
https://github.com/waku-org/js-waku.git
synced 2025-02-25 18:45:35 +00:00
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…
x
Reference in New Issue
Block a user