Skip to content

Commit

Permalink
fix: add missing compute peers as a last step
Browse files Browse the repository at this point in the history
  • Loading branch information
shamsartem committed Feb 10, 2025
1 parent 4a88a66 commit cb06fb3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/cli/package/src/lib/chain/offer/updateOffers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,6 @@ export async function updateOffers(flags: OffersArgs) {
return;
}

for (const { addMissingComputePeers } of offersToAddCPsTo) {
await addMissingComputePeers.execute();
}

if (firstUpdateOffersTx !== undefined) {
await signBatch({
title: `Updating offers:\n\n${populatedOffersTxs
Expand All @@ -137,6 +133,10 @@ export async function updateOffers(flags: OffersArgs) {
});
}

for (const { addMissingComputePeers } of offersToAddCPsTo) {
await addMissingComputePeers.execute();
}

const peersToDeploy = populatedOffersTxs.flatMap(({ txs }) => {
return txs.flatMap(({ peersToDeploy }) => {
return peersToDeploy ?? [];
Expand Down Expand Up @@ -1073,7 +1073,7 @@ function printOffersToUpdateInfo(
return [
`Offer ${color.green(offerName)} with id ${color.yellow(
offerId,
)}:\n\n${[addMissingComputePeersMessage, allTxsMessage].filter(Boolean).join("\n")}\n`,
)}:\n\n${[allTxsMessage, addMissingComputePeersMessage].filter(Boolean).join("\n")}\n`,
];
},
)
Expand Down

0 comments on commit cb06fb3

Please sign in to comment.