From 2ae3df4975ddea43f4323786721f1a3fe601fed5 Mon Sep 17 00:00:00 2001 From: Alexey Timin Date: Wed, 1 May 2024 18:02:56 +0200 Subject: [PATCH] read from top --- index.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.mjs b/index.mjs index c263c09..8ab493b 100644 --- a/index.mjs +++ b/index.mjs @@ -44,7 +44,7 @@ const reader = async (bucket) => { let entry = entryInfo.find(entry => entry.name === entryName); console.info('query'); const now = Date.now(); - for await (const record of bucket.query(entryName, undefined, undefined, {limit: 5})) { + for await (const record of bucket.query(entryName, entry.latestRecord - 10_000_000n , undefined, {limit: 5})) { //console.info('start reading'); const blob = await record.read(); if (md5(blob) !== record.labels.md5) {