Skip to content

Commit

Permalink
fix: restore start/stop time for reconcileMessagesForFid (#2351)
Browse files Browse the repository at this point in the history
  • Loading branch information
CassOnMars authored Oct 2, 2024
1 parent 071ea25 commit 8dfe984
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/unlucky-pots-retire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@farcaster/shuttle": patch
---

fix: restore start/stop times for reconcileMessagesForFid
2 changes: 1 addition & 1 deletion packages/shuttle/src/shuttle/messageReconciliation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export class MessageReconciliation {

const hubMessagesByHash: Record<string, Message> = {};
// First, reconcile messages that are in the hub but not in the database
for await (const messages of this.allHubMessagesOfTypeForFid(fid, type)) {
for await (const messages of this.allHubMessagesOfTypeForFid(fid, type, startTimestamp, stopTimestamp)) {
const messageHashes = messages.map((msg) => msg.hash);

if (messageHashes.length === 0) {
Expand Down

0 comments on commit 8dfe984

Please sign in to comment.