Skip to content

Commit

Permalink
fix(daemon): Ensure guest store and worker formula numbers are unique #…
Browse files Browse the repository at this point in the history
  • Loading branch information
kumavis authored Feb 16, 2024
2 parents ed0788b + ff8d310 commit dc3eb02
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/daemon/src/daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,10 @@ const makeEndoBootstrap = async (
context,
);
} else if (formula.type === 'guest') {
const storeFormulaIdentifier = `pet-store:${formulaNumber}`;
const workerFormulaIdentifier = `worker:${formulaNumber}`;
const storeFormulaNumber = derive(formulaNumber, 'pet-store');
const storeFormulaIdentifier = `pet-store:${storeFormulaNumber}`;
const workerFormulaNumber = derive(formulaNumber, 'worker');
const workerFormulaIdentifier = `worker:${workerFormulaNumber}`;
// Behold, recursion:
// eslint-disable-next-line no-use-before-define
return makeIdentifiedGuestController(
Expand Down

0 comments on commit dc3eb02

Please sign in to comment.