dragon-zhang commented on code in PR #3889:
URL: https://github.com/apache/shenyu/pull/3889#discussion_r958462980


##########
shenyu-client/shenyu-client-motan/src/main/java/org/apache/shenyu/client/motan/MotanServiceEventListener.java:
##########
@@ -94,7 +93,7 @@ public MotanServiceEventListener(final PropertiesConfig 
clientConfig, final Shen
     @Override
     public void onApplicationEvent(final ContextRefreshedEvent 
contextRefreshedEvent) throws BeansException {
         applicationContext = contextRefreshedEvent.getApplicationContext();
-        Map<String, Object> beans = 
applicationContext.getBeansWithAnnotation(ShenyuMotanClient.class);
+        Map<String, Object> beans = 
applicationContext.getBeansWithAnnotation(ShenyuMotanService.class);

Review Comment:
   I think you don't need to modify `MotanServiceEventListener`



##########
shenyu-client/shenyu-client-motan/src/main/java/org/apache/shenyu/client/motan/MotanServiceEventListener.java:
##########
@@ -94,7 +93,7 @@ public MotanServiceEventListener(final PropertiesConfig 
clientConfig, final Shen
     @Override
     public void onApplicationEvent(final ContextRefreshedEvent 
contextRefreshedEvent) throws BeansException {
         applicationContext = contextRefreshedEvent.getApplicationContext();
-        Map<String, Object> beans = 
applicationContext.getBeansWithAnnotation(ShenyuMotanClient.class);
+        Map<String, Object> beans = 
applicationContext.getBeansWithAnnotation(ShenyuMotanService.class);

Review Comment:
   I think you don't need to modify `MotanServiceEventListener`.



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