Skip to content

Commit

Permalink
fix: catch and ignore provider errors during retry (#1572)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjayprabhu authored Nov 10, 2023
1 parent 3dd49ac commit 912f680
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/good-shrimps-smile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@farcaster/hubble": patch
---

fix: catch and ignore provider errors during retry
6 changes: 5 additions & 1 deletion apps/hubble/src/eth/l2EventsProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,11 @@ export class L2EventsProvider {
this._retryDedupMap.set(blockNumber, true);

// Sync old events
await this.syncHistoricalEvents(blockNumber, blockNumber + 1, 1);
try {
await this.syncHistoricalEvents(blockNumber, blockNumber + 1, 1);
} catch (e) {
log.error(e, `Error retrying events from block ${blockNumber}`);
}
}

private setAddresses(
Expand Down

0 comments on commit 912f680

Please sign in to comment.