Skip to content

Commit

Permalink
refactor(daemon): Contract formulate and provide (merge #2150)
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskowal committed Mar 16, 2024
2 parents 1740231 + e8491ce commit 2da8c6a
Show file tree
Hide file tree
Showing 8 changed files with 90 additions and 142 deletions.
3 changes: 2 additions & 1 deletion packages/daemon/src/daemon-node-powers.js
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,8 @@ export const makeDaemonicPersistencePowers = (
};

// Persist instructions for revival (this can be collected)
const writeFormula = async (formula, formulaType, formulaNumber) => {
/** @type {import('./types.js').DaemonicPersistencePowers['writeFormula']} */
const writeFormula = async (formulaNumber, formula) => {
const { directory, file } = makeFormulaPath(formulaNumber);
// TODO Take care to write atomically with a rename here.
await filePowers.makePath(directory);
Expand Down
Loading

0 comments on commit 2da8c6a

Please sign in to comment.