Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
amydevs committed Jul 25, 2024
1 parent f657a75 commit f28f917
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/nodes/NodeManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ class NodeManager {
);
const successfulConnections = connectionResults.filter(
(r) => r.status === 'fulfilled',
).length;
if (successfulConnections === 0) {
) as Array<PromiseFulfilledResult<NodeConnection>>;
if (successfulConnections.length === 0) {
const failedConnectionErrors = connectionResults
.filter((r) => r.status === 'rejected')
.map((v) => {
Expand All @@ -261,6 +261,11 @@ class NodeManager {
},
);
}
else {
// wip: We should ideally take the fastest connection and use it here for node signing.
const conn = successfulConnections[0].value;
conn.rpcClient.methods
}
if (ctx.signal.aborted) return;

// Attempt a findNode operation looking for ourselves
Expand Down

0 comments on commit f28f917

Please sign in to comment.