xwm1992 commented on a change in pull request #343:
URL: 
https://github.com/apache/incubator-eventmesh/pull/343#discussion_r630695370



##########
File path: 
eventmesh-test/src/main/java/org/apache/eventmesh/http/demo/sub/service/SubService.java
##########
@@ -38,6 +44,11 @@
     final String dcn = "FT0";
     final String subsys = "1234";
 
+    // CountDownLatch size is the same as messageSize in 
AsyncPublishInstance.java (Publisher)
+    private CountDownLatch countDownLatch = new 
CountDownLatch(AsyncPublishInstance.messageSize);
+
+    private ExecutorService executorService = Executors.newFixedThreadPool(5);

Review comment:
       Of cource it won't make a difference, but I wonder here is it necessary 
to use a thread pool?




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

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