Conversation
…potency_key - Changed idempotency_key handling to use Option::map instead of unwrap() - Now properly handles cases where other options are set but idempotency_key is None - Fixes issue #40
WalkthroughThe PR refactors Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
Possibly related PRs
Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (3)📓 Common learnings📚 Learning: 2025-11-08T21:23:07.278ZApplied to files:
📚 Learning: 2025-11-08T21:09:18.838ZApplied to files:
🧬 Code graph analysis (1)src/runner/runner.rs (2)
🔇 Additional comments (1)
Tip 📝 Customizable high-level summaries are now available in beta!You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.
Example instruction:
Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later. 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 |
Description
Fixes a panic that occurs when
max_retries,timeout,priority, ordelayis set, butidempotency_keyis not provided.Problem
The code at line 1258 was calling
unwrap()onself.idempotency_keywithout checking if it wasSome. This caused a panic when:priority,max_retries,timeout, ordelaywas setidempotency_keywasNoneSolution
Changed the code to use
Option::map()instead ofunwrap(), which properly handles the case whereidempotency_keyisNone. Theidempotency_keyfield inActivityOptionis already optional, so this change aligns the code with that design.Changes
unwrap()withOption::map()to safely handleNonevaluesTesting
Related Issues
Closes #40
Summary by CodeRabbit
Refactor
✏️ Tip: You can customize this high-level summary in your review settings.