mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-07 16:23:09 +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') {
|
if (typeof nodes === 'object') {
|
||||||
nodes = Object.values(nodes);
|
nodes = Object.values(nodes);
|
||||||
getPseudoRandomSubset(nodes, wantedNumber);
|
return getPseudoRandomSubset(nodes, wantedNumber);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw `Failed to retrieve bootstrap nodes: response format is not supported: ${JSON.stringify(
|
throw `Failed to retrieve bootstrap nodes: response format is not supported: ${JSON.stringify(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user