lizhanhui commented on a change in pull request #371:
URL: 
https://github.com/apache/rocketmq-client-cpp/pull/371#discussion_r731790296



##########
File path: src/main/cpp/rocketmq/ClientImpl.cpp
##########
@@ -379,6 +405,13 @@ void ClientImpl::verifyMessageConsumption(std::string 
remote_address, std::strin
 }
 
 void ClientImpl::onPollCommandResponse(const 
InvocationContext<PollCommandResponse>* ctx) {
+  std::string address = ctx->remote_address;
+  absl::flat_hash_set<std::string> hosts;
+  endpointsInUse(hosts);
+  if (!hosts.contains(address)) {
+    SPDLOG_INFO("Endpoints={} was not used, stop to poll command.", address);

Review comment:
       "Endpoints={} was not used, stop to poll command." --> "Endpoint={} is 
no longer used. Abort its command polling cycle"




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