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


##########
rust/src/client.rs:
##########
@@ -89,6 +111,119 @@ impl Session {
 struct SessionManager {
     logger: Logger,
     tx: tokio::sync::mpsc::Sender<command::Command>,
+    selector: QueueSelector,
+}
+
+impl SessionManager {
+    async fn send(
+        &self,
+        message: &models::message::MessageImpl,
+        client: Weak<&Client>,
+    ) -> Result<SendMessageResponse, ClientError> {

Review Comment:
   SessionManager helps manage sessions: by maintaining heartbeat, and 
administrative controlling flow...
   
   Specific send steps should go to `Session` and `SessionManager` should 
directly forward workload to a target session after looking up the route-table: 
mapping between topic/queue to host addresses.
   



-- 
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