chore: refactor importer to reduce repeated code#2373
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #2373 +/- ##
==========================================
- Coverage 84.93% 84.41% -0.52%
==========================================
Files 130 138 +8
Lines 10728 10647 -81
==========================================
- Hits 9112 8988 -124
- Misses 1616 1659 +43
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
401080e to
ee49fe0
Compare
98bb19c to
198b901
Compare
|
Final benchmark: Git Info:
Leader Stats: Follower Stats: Plots: |
PR Type
Enhancement
Description
Refactored importer to reduce code duplication
Introduced generic block fetcher for common logic
Improved error handling and retry mechanisms
Enhanced BlockNumber functionality with new conversions
Diagram Walkthrough
File Walkthrough
importer.rs
Refactor importer for improved code reuse and error handlingsrc/eth/follower/importer/importer.rs
send_block_to_kafka)
block_number.rs
Enhance BlockNumber functionality with new conversionssrc/eth/primitives/block_number.rs