You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by GitBox <gi...@apache.org> on 2021/08/03 02:49:55 UTC

[GitHub] [incubator-shenyu] yu199195 commented on a change in pull request #1857: Implement the async dubbo invoking for alibaba-dubbo

yu199195 commented on a change in pull request #1857:
URL: https://github.com/apache/incubator-shenyu/pull/1857#discussion_r681394332



##########
File path: shenyu-plugin/shenyu-plugin-alibaba-dubbo/src/main/java/org/apache/shenyu/plugin/alibaba/dubbo/AlibabaDubboPlugin.java
##########
@@ -74,14 +78,35 @@ public AlibabaDubboPlugin(final AlibabaDubboProxyService alibabaDubboProxyServic
             Object error = ShenyuResultWrap.error(ShenyuResultEnum.DUBBO_HAVE_BODY_PARAM.getCode(), ShenyuResultEnum.DUBBO_HAVE_BODY_PARAM.getMsg(), null);
             return WebFluxResultUtils.result(exchange, error);
         }
-        Object result = alibabaDubboProxyService.genericInvoker(param, metaData);
-        if (Objects.nonNull(result)) {
-            exchange.getAttributes().put(Constants.RPC_RESULT, result);
-        } else {
-            exchange.getAttributes().put(Constants.RPC_RESULT, Constants.DUBBO_RPC_RESULT_EMPTY);
-        }
-        exchange.getAttributes().put(Constants.CLIENT_RESPONSE_RESULT_TYPE, ResultEnum.SUCCESS.getName());
-        return chain.execute(exchange);
+
+        return Mono.create(monoSink -> {
+            ResponseFuture future = alibabaDubboProxyService.genericInvoker(param, metaData);

Review comment:
       whats version for alibaba -dubbo?




-- 
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: notifications-unsubscribe@shenyu.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org