From 2de3cccc2c00885cb3ada67d16bbf51b1bd358ec Mon Sep 17 00:00:00 2001 From: chengxilo Date: Sun, 27 Jul 2025 15:22:56 -0400 Subject: [PATCH] typo: change shoudStopTraverse to shouldStopTraverse --- src/databases/keyvalue-indexed.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/databases/keyvalue-indexed.js b/src/databases/keyvalue-indexed.js index 4cb75f5..5994644 100644 --- a/src/databases/keyvalue-indexed.js +++ b/src/databases/keyvalue-indexed.js @@ -42,7 +42,7 @@ const Index = ({ directory } = {}) => async () => { const isNotIndexed = async (hash) => !(await isIndexed(hash)) // Function to decide when the log traversal should be stopped - const shoudStopTraverse = async (entry) => { + const shouldStopTraverse = async (entry) => { // Go through the nexts of an entry and if any is not yet // indexed, add it to the list of entries-to-be-indexed for await (const hash of entry.next) { @@ -56,7 +56,7 @@ const Index = ({ directory } = {}) => async () => { } // Traverse the log and stop when everything has been processed - for await (const entry of log.traverse(null, shoudStopTraverse)) { + for await (const entry of log.traverse(null, shouldStopTraverse)) { const { hash, payload } = entry // If an entry is not yet indexed, process it if (await isNotIndexed(hash)) {