-
Notifications
You must be signed in to change notification settings - Fork 1
fix: re-attempt to replenish the program cache on error #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughA retry mechanism is added around Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (1)
src/transaction_processor.rs(1 hunks)
🔇 Additional comments (2)
src/transaction_processor.rs (2)
370-370: LGTM: Retry flag initialization.The
replenish_retriedflag clearly tracks whether a retry attempt has occurred, preventing infinite loops.
391-398: Consider whether early return with errors for all transactions is appropriate.When the program cache hits max limit even after pruning and retry, all transactions in the batch receive
ProgramCacheHitMaxLimiterrors. This might be overly harsh if only a subset of transactions caused the cache pressure.However, if the cache cannot be replenished after pruning, continuing execution could lead to incorrect results. Verify this is the intended behavior.
GabrielePicco
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.