From fe3caf554afb3baff4dff9d6dc24402281575ecd Mon Sep 17 00:00:00 2001 From: kumavis Date: Fri, 16 Feb 2024 14:46:18 -1000 Subject: [PATCH] fix(daemon): in mail remove redundant SELF lookup --- packages/daemon/src/mail.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/daemon/src/mail.js b/packages/daemon/src/mail.js index 93fe1e7528..fe060114fa 100644 --- a/packages/daemon/src/mail.js +++ b/packages/daemon/src/mail.js @@ -128,12 +128,8 @@ export const makeMailboxMaker = ({ // naming hub's formula identifier and the pet name path. // A "naming hub" is an objected with a variadic lookup method. It includes // objects such as guests and hosts. - const hubFormulaIdentifier = identifyLocal('SELF'); - if (hubFormulaIdentifier === undefined) { - throw new Error('No SELF found during LookupFormula creation.'); - } const digester = makeSha512(); - digester.updateText(`${hubFormulaIdentifier},${petNamePath.join(',')}`); + digester.updateText(`${selfFormulaIdentifier},${petNamePath.join(',')}`); const lookupFormulaNumber = digester.digestHex(); // TODO:lookup Check if the lookup formula already exists in the store @@ -141,7 +137,7 @@ export const makeMailboxMaker = ({ const lookupFormula = { /** @type {'lookup'} */ type: 'lookup', - hub: hubFormulaIdentifier, + hub: selfFormulaIdentifier, path: petNamePath, };