fengcunhan commented on a change in pull request #2273:
URL: https://github.com/apache/incubator-shenyu/pull/2273#discussion_r738170967



##########
File path: 
shenyu-plugin/shenyu-plugin-dubbo/shenyu-plugin-apache-dubbo/src/main/java/org/apache/shenyu/plugin/apache/dubbo/cache/ApplicationConfigCache.java
##########
@@ -151,11 +153,18 @@ private boolean needUpdateRegistryConfig(final 
DubboRegisterConfig dubboRegister
         ReferenceConfig<GenericService> reference = new ReferenceConfig<>();
         reference.setGeneric("true");
         reference.setAsync(true);
+        reference.setSent(false);
         reference.setApplication(applicationConfig);
         reference.setRegistry(registryConfig);
         reference.setInterface(metaData.getServiceName());
         reference.setProtocol("dubbo");
+        reference.setCheck(false);
         reference.setLoadbalance("gray");
+
+        Map<String, String> parameters = new HashMap<>(2);
+        parameters.put("dispatcher", "direct");
+        reference.setParameters(parameters);
+

Review comment:
       I do not upgrade dubbo version,this was supported by current dubbo 
version .
   
   
   I use charles to call the test API 
    
   ![5941635410192_ 
pic_hd](https://user-images.githubusercontent.com/1415540/139219842-962a96e1-348b-4809-881b-d6ab32346c7c.jpg)
   
   use the default dispatcher.
   ![5951635410226_ 
pic_hd](https://user-images.githubusercontent.com/1415540/139219565-11d50c2b-2594-48c3-95fa-49484289f78f.jpg)
   
   set the dispatcher to direct
   ![5931635409762_ 
pic_hd](https://user-images.githubusercontent.com/1415540/139220052-648237cc-aae8-4fe0-b786-2701f00c31ff.jpg)
   .
   




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