You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@eventmesh.apache.org by GitBox <gi...@apache.org> on 2022/03/10 01:25:09 UTC

[GitHub] [incubator-eventmesh] ruanwenjun commented on a change in pull request #807: [ISSUE #806] code optimization and delete invalid code in eventmesh-e…

ruanwenjun commented on a change in pull request #807:
URL: https://github.com/apache/incubator-eventmesh/pull/807#discussion_r823252078



##########
File path: eventmesh-examples/src/main/java/org/apache/eventmesh/grpc/sub/app/service/SubService.java
##########
@@ -115,8 +115,8 @@ public void cleanup() {
      * Count the message already consumed
      */
     public void consumeMessage(String msg) {
-        logger.info("consume message {}", msg);
+        logger.info("consume message: {}", msg);
         countDownLatch.countDown();
-        logger.info("remaining number of messages to be consumed {}", countDownLatch.getCount());
+        logger.info("remaining number of messages to be consumed : {}", countDownLatch.getCount());

Review comment:
       For  code style consistency, you can delete this space.
   ```suggestion
           logger.info("remaining number of messages to be consumed: {}", countDownLatch.getCount());
   ```

##########
File path: eventmesh-examples/src/main/java/org/apache/eventmesh/http/demo/pub/eventmeshmessage/SyncRequestInstance.java
##########
@@ -71,7 +73,7 @@ public static void main(String[] args) throws Exception {
 
             EventMeshMessage rsp = eventMeshHttpProducer.request(eventMeshMessage, 10000);
             if (logger.isDebugEnabled()) {
-                logger.debug("sendmsg : {}, return : {}, cost:{}ms", eventMeshMessage.getContent(), rsp.getContent(),
+                logger.debug("sendmsg : {}, return : {}, cost:{} ms", eventMeshMessage.getContent(), rsp.getContent(),

Review comment:
       ```suggestion
                   logger.debug("sendmsg: {}, return: {}, cost:{} ms", eventMeshMessage.getContent(), rsp.getContent(),
   ```




-- 
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: dev-unsubscribe@eventmesh.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: dev-help@eventmesh.apache.org