Skip to content

Commit

Permalink
read from top
Browse files Browse the repository at this point in the history
  • Loading branch information
atimin committed May 1, 2024
1 parent ad06ea7 commit 2ae3df4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2ae3df4

Please sign in to comment.