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



##########
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:
       Yes.If you do not set dispatcher to direct,the default value is all, 
which means every request and response will be processed in work thread。




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