yhs0092 commented on code in PR #4935:
URL: 
https://github.com/apache/servicecomb-java-chassis/pull/4935#discussion_r2418796348


##########
common/common-rest/src/main/java/org/apache/servicecomb/common/rest/filter/inner/ServerRestArgsFilter.java:
##########
@@ -90,6 +92,10 @@ public CompletableFuture<Void> 
beforeSendResponseAsync(Invocation invocation, Ht
       return writeServerSendEvent(invocation, response, produceProcessor, 
responseEx);
     }
 
+    if (failed && 
MediaType.SERVER_SENT_EVENTS.equals(produceProcessor.getName())) {
+      produceProcessor = new ProduceJsonProcessor();

Review Comment:
   这里应该可以做成一个单例的实例进行重复利用, 没必要每次都重新new一个对象.



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