mxsm commented on code in PR #3451:
URL: 
https://github.com/apache/incubator-eventmesh/pull/3451#discussion_r1135790253


##########
eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/HeartBeatProcessor.java:
##########
@@ -179,9 +179,7 @@ public void processRequest(final ChannelHandlerContext ctx, 
final AsyncContext<H
         final long startTime = System.currentTimeMillis();
         try {
 
-            final CompleteHandler<HttpCommand> handler = new 
CompleteHandler<HttpCommand>() {
-                @Override
-                public void onResponse(final HttpCommand httpCommand) {
+            final CompleteHandler<HttpCommand> handler = httpCommand ->

Review Comment:
   Missing {
   ```java
               final CompleteHandler<HttpCommand> handler = httpCommand -> {
                   try {
                       if (log.isDebugEnabled()) {
                           log.debug("{}", httpCommand);
                       }
                       eventMeshHTTPServer.sendResponse(ctx, 
httpCommand.httpResponse());
                       
eventMeshHTTPServer.getEventMeshHttpMetricsManager().getSummaryMetrics().recordHTTPReqResTimeCost(
                           System.currentTimeMillis() - 
asyncContext.getRequest().getReqTime());
                   } catch (Exception ex) {
                       //ignore
                   }
               };
   ```



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