funky-eyes commented on code in PR #7492:
URL: https://github.com/apache/incubator-seata/pull/7492#discussion_r2181305097
##########
server/src/main/java/org/apache/seata/server/controller/ClusterController.java:
##########
@@ -117,6 +118,12 @@ public void watch(
@RequestBody Map<String, Object> groupTerms,
@RequestParam(defaultValue = "28000") Integer timeout) {
context.setAsync(true);
+
+ if (Version.isAboveOrEqualVersion250(Version.getCurrent())) {
Review Comment:
I think the logic for determining whether the server is version 2.5 should
not be on the server side, but should be on the client side. The client should
adopt the corresponding connection method to the server based on the server's
version, and the server will naturally know whether the client is using HTTP/2
requests.
--
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]