This is an automated email from the ASF dual-hosted git repository.

zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 1da02afcae5 Code format for GlobalRuleConfigurationEventSubscriber 
(#31921)
1da02afcae5 is described below

commit 1da02afcae50f9f9be35496f66ca0ebe2fd8cda1
Author: Liang Zhang <[email protected]>
AuthorDate: Sat Jun 29 15:39:26 2024 +0800

    Code format for GlobalRuleConfigurationEventSubscriber (#31921)
---
 .../subscriber/GlobalRuleConfigurationEventSubscriber.java            | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/mode/type/cluster/core/src/main/java/org/apache/shardingsphere/mode/manager/cluster/coordinator/subscriber/GlobalRuleConfigurationEventSubscriber.java
 
b/mode/type/cluster/core/src/main/java/org/apache/shardingsphere/mode/manager/cluster/coordinator/subscriber/GlobalRuleConfigurationEventSubscriber.java
index 8e8f426e793..58b89876b7d 100644
--- 
a/mode/type/cluster/core/src/main/java/org/apache/shardingsphere/mode/manager/cluster/coordinator/subscriber/GlobalRuleConfigurationEventSubscriber.java
+++ 
b/mode/type/cluster/core/src/main/java/org/apache/shardingsphere/mode/manager/cluster/coordinator/subscriber/GlobalRuleConfigurationEventSubscriber.java
@@ -38,8 +38,8 @@ public final class GlobalRuleConfigurationEventSubscriber 
implements EventSubscr
      */
     @Subscribe
     public synchronized void renew(final AlterGlobalRuleConfigurationEvent 
event) {
-        if 
(!event.getActiveVersion().equals(contextManager.getPersistServiceFacade().getMetaDataPersistService().getMetaDataVersionPersistService()
-                .getActiveVersionByFullPath(event.getActiveVersionKey()))) {
+        if (!event.getActiveVersion().equals(
+                
contextManager.getPersistServiceFacade().getMetaDataPersistService().getMetaDataVersionPersistService().getActiveVersionByFullPath(event.getActiveVersionKey())))
 {
             return;
         }
         
contextManager.getPersistServiceFacade().getMetaDataPersistService().getGlobalRuleService().load(event.getRuleSimpleName())

Reply via email to