Compare commits

..

3 Commits
v3.0.2 ... main

Author SHA1 Message Date
Hayden Young
8fca6014e4
Merge pull request #1233 from chengxilo/fix-typo
typo: change shoudStopTraverse to shouldStopTraverse
2025-08-05 03:58:51 +02:00
chengxilo
2de3cccc2c typo: change shoudStopTraverse to shouldStopTraverse 2025-07-27 15:22:56 -04:00
Hayden Young
d9e62979d8 chore: Update changelog. 2025-05-29 13:48:41 +02:00
2 changed files with 4 additions and 4 deletions

View File

@ -2,10 +2,10 @@
For now, please refer to our Git commit history for a list of changes. For now, please refer to our Git commit history for a list of changes.
https://github.com/orbitdb/orbitdb/compare/v2.4.3...v2.5.0 https://github.com/orbitdb/orbitdb/compare/v2.5.0...v3.0.2
You can also use the following git command to generate a log of changes: You can also use the following git command to generate a log of changes:
``` ```
git log v2.4.3..v2.5.0 --oneline git log v2.5.0..v3.0.2 --oneline
``` ```

View File

@ -42,7 +42,7 @@ const Index = ({ directory } = {}) => async () => {
const isNotIndexed = async (hash) => !(await isIndexed(hash)) const isNotIndexed = async (hash) => !(await isIndexed(hash))
// Function to decide when the log traversal should be stopped // 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 // Go through the nexts of an entry and if any is not yet
// indexed, add it to the list of entries-to-be-indexed // indexed, add it to the list of entries-to-be-indexed
for await (const hash of entry.next) { 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 // 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 const { hash, payload } = entry
// If an entry is not yet indexed, process it // If an entry is not yet indexed, process it
if (await isNotIndexed(hash)) { if (await isNotIndexed(hash)) {