Closed arkanoider closed 1 week ago
The pull request introduces several modifications across multiple files to enhance action handling and logging within the application. Key changes include the addition of new helper functions for logging and processing message actions, as well as updates to existing functions to streamline the handling of parameters, particularly the request_id
. The changes improve code organization and maintainability while ensuring that core functionalities remain intact.
File | Change Summary |
---|---|
src/app.rs |
- Added fn warning_msg(action: &Action, e: anyhow::Error) - Added async fn handle_message_action(...) - Updated pub async fn run(...) to utilize the new action handling function and improved logging with tracing . |
src/app/admin_take_dispute.rs |
- Modified admin_take_dispute_action to pass None for request_id in messages to buyer and seller. |
src/app/cancel.rs |
- Simplified cancel_action , cancel_add_invoice , and cancel_pay_hold_invoice by removing redundant message sending lines while retaining cancellation logic. |
src/app/dispute.rs |
- Added async fn publish_dispute_event(...) - Added fn get_counterpart_info(...) - Updated async fn get_valid_order(...) to encapsulate order validation logic and improved error handling in dispute_action . |
src/app/fiat_sent.rs |
- Modified fiat_sent_action to pass None for request_id in seller's notification message. |
request_id
parameter to several action functions, relevant to the main PR's improvements.run
function to remove the request_id
parameter from the call to take_buy_action
, aligning with the main PR's focus.request_id
in various contexts, directly related to the main PR's handling of action parameters.request_id
from messages in the admin_take_dispute_action
function, relevant to the main PR's modifications.🐇 In the code where actions play,
A rabbit hops and clears the way.
With warnings logged and messages bright,
The flow is smooth, the code feels right.
No more clutter, just clarity's cheer,
Hopping along, the changes are here! 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Hey buddy tests are failing
Yep! Too many rabbit advices...will fix!
let's see now...
@grunch
playing a bit with some refactoring insipired a bit by
cursorAI
, he did quite well inApp.rs
imo and I tried to chunck big functions indispute.rs
to start.Take a look with a grain of saly, just compiled not tested.
Summary by CodeRabbit