From 6122a9afc42a20a17cd1607cd433098a68215b02 Mon Sep 17 00:00:00 2001 From: Sunrisea <49605583+Sunrisea@users.noreply.github.com> Date: Wed, 24 Jul 2024 16:05:34 +0800 Subject: [PATCH] Fix the bug of ConnectionControlManager (#12399) --- .../control/connection/ConnectionControlManager.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugin/control/src/main/java/com/alibaba/nacos/plugin/control/connection/ConnectionControlManager.java b/plugin/control/src/main/java/com/alibaba/nacos/plugin/control/connection/ConnectionControlManager.java index 7224d1227..57d424a42 100644 --- a/plugin/control/src/main/java/com/alibaba/nacos/plugin/control/connection/ConnectionControlManager.java +++ b/plugin/control/src/main/java/com/alibaba/nacos/plugin/control/connection/ConnectionControlManager.java @@ -36,7 +36,7 @@ import java.util.stream.Collectors; /** * connection control manager. * - * @author shiyiyue + * @author shiyiyu */ @SuppressWarnings("PMD.AbstractClassShouldStartWithAbstractNamingRule") public abstract class ConnectionControlManager { @@ -64,7 +64,7 @@ public abstract class ConnectionControlManager { /** * get manager name. * - * @return + * @return name */ public abstract String getName(); @@ -104,7 +104,7 @@ public abstract class ConnectionControlManager { } else { Loggers.CONTROL.info("No connection rule content found ,use default empty rule "); - connectionControlRule = new ConnectionControlRule(); + connectionControlRule = connectionControlRuleParser.parseRule(""); } } @@ -127,7 +127,7 @@ public abstract class ConnectionControlManager { * check connection allowed. * * @param connectionCheckRequest connectionCheckRequest. - * @return + * @return connection check response */ public abstract ConnectionCheckResponse check(ConnectionCheckRequest connectionCheckRequest);