Skip to content

Commit

Permalink
Await ensuring Nimbus connection
Browse files Browse the repository at this point in the history
  • Loading branch information
dappnodedev committed Sep 25, 2024
1 parent 88cd7cb commit 60c9630
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/dappmanager/src/calls/packageInstall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export async function packageInstall({
options
});

ensureNimbusConnection(reqName);
await ensureNimbusConnection(reqName);
}

/**
Expand All @@ -41,7 +41,7 @@ export async function packageInstall({
*
* TODO: Remove this once all Nimbus packages are multiservice
*/
function ensureNimbusConnection(dnpName: string): void {
async function ensureNimbusConnection(dnpName: string): Promise<void> {
if (!dnpName.includes("nimbus")) {
logs.debug("Not a Nimbus package, skipping network reconnection");
return;
Expand All @@ -66,5 +66,5 @@ function ensureNimbusConnection(dnpName: string): void {
}

// Not awaited
consensus.persistSelectedConsensusIfInstalled(network);
await consensus.persistSelectedConsensusIfInstalled(network);
}

0 comments on commit 60c9630

Please sign in to comment.