From ff829fc43e30ab7e0082a60e4adcc974121dc1e9 Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Tue, 21 Sep 2021 14:21:51 +1000 Subject: [PATCH] Ensure node address is returned for Object type responses --- src/lib/discovery.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/discovery.ts b/src/lib/discovery.ts index 327bb236ee..b7be798778 100644 --- a/src/lib/discovery.ts +++ b/src/lib/discovery.ts @@ -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(