Pil0tXia commented on code in PR #4462:
URL: https://github.com/apache/eventmesh/pull/4462#discussion_r1336024654


##########
eventmesh-runtime/src/test/java/org/apache/eventmesh/runtime/demo/CClientDemo.java:
##########
@@ -45,13 +42,10 @@ public static void main(String[] args) throws Exception {
         client.justSubscribe(ASYNC_TOPIC, SubscriptionMode.CLUSTERING, 
SubscriptionType.ASYNC);
         client.justSubscribe(BROADCAST_TOPIC, SubscriptionMode.BROADCASTING, 
SubscriptionType.ASYNC);
         client.listen();
-        client.registerSubBusiHandler(new ReceiveMsgHook() {
-            @Override
-            public void handle(Package msg, ChannelHandlerContext ctx) {
-                if (msg.getHeader().getCmd() == 
Command.ASYNC_MESSAGE_TO_CLIENT || msg.getHeader().getCmd() == 
Command.BROADCAST_MESSAGE_TO_CLIENT) {
-                    if (log.isInfoEnabled()) {
-                        log.info("receive message: {}", msg);
-                    }
+        client.registerSubBusiHandler((msg, ctx) -> {
+            if (msg.getHeader().getCmd() == Command.ASYNC_MESSAGE_TO_CLIENT || 
msg.getHeader().getCmd() == Command.BROADCAST_MESSAGE_TO_CLIENT) {
+                if (log.isInfoEnabled()) {
+                    log.info("receive message: {}", msg);

Review Comment:
   Yes, a new branch is needed to resolve another issue.
   
   
![image](https://github.com/apache/eventmesh/assets/41445332/657fa3d7-fd04-41f2-af3a-23c79722f97a)
   



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to