[ISSUE #2859]🚀Implement PutResultProcess#then_process method#2860
[ISSUE #2859]🚀Implement PutResultProcess#then_process method#2860rocketmq-rust-bot merged 1 commit intomainfrom
Conversation
WalkthroughThe changes modify the message delivery and result handling process in the schedule service. In the Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant DeliveryTask as DeliverDelayedMessageTimerTask
participant AsyncService
participant PutProc as PutResultProcess
Client->>DeliveryTask: deliver_message()
DeliveryTask->>AsyncService: send message asynchronously
AsyncService-->>DeliveryTask: result
DeliveryTask->>PutProc: set_put_message_result(result)
Note right of PutProc: Later during processing...
PutProc->>PutProc: then_process()
PutProc->>PutProc: check if result exists
PutProc->>PutProc: handle_result(&result)
PutProc->>Client: on_success(&result)
Assessment against linked issues
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (9)
🔇 Additional comments (6)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
|
🔊@mxsm 🚀Thanks for your contribution🎉! 💡CodeRabbit(AI) will review your code first🔥! Note 🚨The code review suggestions from CodeRabbit are to be used as a reference only, and the PR submitter can decide whether to make changes based on their own judgment. Ultimately, the project management personnel will conduct the final code review💥. |
There was a problem hiding this comment.
Pull Request Overview
This pull request implements the PutResultProcess#then_process method by replacing the previously unimplemented async handling with a synchronous call to handle the PutMessageResult.
- Replace the unimplemented code in then_process with a direct call to handle_result.
- Update handle_result and on_success signatures to take references rather than values for consistency.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2860 +/- ##
==========================================
- Coverage 27.55% 27.55% -0.01%
==========================================
Files 527 527
Lines 78048 78051 +3
==========================================
Hits 21504 21504
- Misses 56544 56547 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Which Issue(s) This PR Fixes(Closes)
Fixes #2859
Brief Description
How Did You Test This Change?
Summary by CodeRabbit