funky-eyes commented on code in PR #7095:
URL: https://github.com/apache/incubator-seata/pull/7095#discussion_r1972711370


##########
core/src/main/java/org/apache/seata/core/rpc/netty/AbstractNettyRemotingClient.java:
##########
@@ -222,6 +229,7 @@ public void sendAsyncRequest(Channel channel, Object msg) {
     public void sendAsyncResponse(String serverAddress, RpcMessage rpcMessage, 
Object msg) {
         RpcMessage rpcMsg = buildResponseMessage(rpcMessage, msg, 
ProtocolConstants.MSGTYPE_RESPONSE);
         Channel channel = clientChannelManager.acquireChannel(serverAddress);
+        channelToRequestIds.computeIfAbsent(channel, ch -> 
ConcurrentHashMap.newKeySet()).add(rpcMessage.getId());

Review Comment:
   If the request is successful, how will this element be deleted?



-- 
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: notifications-unsubscr...@seata.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org
For additional commands, e-mail: notifications-h...@seata.apache.org

Reply via email to