dragon-zhang commented on code in PR #3529:
URL: https://github.com/apache/incubator-shenyu/pull/3529#discussion_r894985347


##########
shenyu-client/shenyu-client-http/shenyu-client-springcloud/src/main/java/org/apache/shenyu/client/springcloud/init/SpringCloudClientBeanListener.java:
##########
@@ -101,24 +102,34 @@ public SpringCloudClientBeanPostProcessor(final 
PropertiesConfig clientConfig,
         mappingAnnotation.add(RequestMapping.class);
         publisher.start(shenyuClientRegisterRepository);
     }
-    
+
     @Override
-    public Object postProcessAfterInitialization(@NonNull final Object bean, 
@NonNull final String beanName) throws BeansException {
+    public void onApplicationEvent(final ContextRefreshedEvent 
contextRefreshedEvent) {
+        if 
(Objects.nonNull(contextRefreshedEvent.getApplicationContext().getParent())) {
+            return;
+        }

Review Comment:
   What is the point of doing this?
   ```java
   if 
(Objects.nonNull(contextRefreshedEvent.getApplicationContext().getParent())) {
       return;
   }
   ```



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