healchow commented on a change in pull request #3279:
URL: https://github.com/apache/incubator-inlong/pull/3279#discussion_r831090578



##########
File path: 
inlong-agent/agent-core/src/main/java/org/apache/inlong/agent/core/task/TaskWrapper.java
##########
@@ -79,20 +84,29 @@ public TaskWrapper(AgentManager manager, Task task) {
      * @return CompletableFuture
      */
     private CompletableFuture<?> submitReadThread() {
-        return CompletableFuture.runAsync(() -> {
-            Message message = null;
-            while (!isException() && !task.isReadFinished()) {
-                if (message == null || task.getChannel()
-                        .push(message, pushMaxWaitTime, TimeUnit.SECONDS)) {
-                    message = task.getReader().read();
-                }
+    return CompletableFuture.runAsync(

Review comment:
       The indentation of the code doesn't look right.




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