lizhanhui commented on code in PR #576:
URL: https://github.com/apache/rocketmq-clients/pull/576#discussion_r1273254319


##########
rust/examples/fifo_producer.rs:
##########
@@ -44,10 +44,23 @@ async fn main() {
     .unwrap();
 
     // send message to rocketmq proxy
-    let result = producer.send(message).await;
-    debug_assert!(result.is_ok(), "send message failed: {:?}", result);
+    let send_result = producer.send(message).await;
+    debug_assert!(

Review Comment:
   I doubt if debug_assert is of a good choice for error handling here.  
`eprintln!` directly in case something unexpected happens.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to