You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by su...@apache.org on 2024/05/12 04:41:09 UTC
(shardingsphere) branch master updated: Revise #31210 (#31214)
This is an automated email from the ASF dual-hosted git repository.
sunnianjun 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 af94527f1e2 Revise #31210 (#31214)
af94527f1e2 is described below
commit af94527f1e2cf483bc7c2953606d21c1e014301a
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Sun May 12 12:41:03 2024 +0800
Revise #31210 (#31214)
---
.../handler/fixture/DistSQLLoadBalanceAlgorithmFixture.java | 10 +++++-----
...here.infra.algorithm.loadbalancer.core.LoadBalanceAlgorithm | 2 +-
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/kernel/traffic/distsql/handler/src/test/java/org/apache/shardingsphere/traffic/distsql/handler/fixture/DistSQLLoadBalanceAlgorithmFixture.java b/kernel/traffic/distsql/handler/src/test/java/org/apache/shardingsphere/traffic/distsql/handler/fixture/DistSQLLoadBalanceAlgorithmFixture.java
index 9c2b4e8305e..588bb7ef6b9 100644
--- a/kernel/traffic/distsql/handler/src/test/java/org/apache/shardingsphere/traffic/distsql/handler/fixture/DistSQLLoadBalanceAlgorithmFixture.java
+++ b/kernel/traffic/distsql/handler/src/test/java/org/apache/shardingsphere/traffic/distsql/handler/fixture/DistSQLLoadBalanceAlgorithmFixture.java
@@ -21,15 +21,15 @@ import org.apache.shardingsphere.infra.algorithm.loadbalancer.core.LoadBalanceAl
import java.util.List;
-public class DistSQLLoadBalanceAlgorithmFixture implements LoadBalanceAlgorithm {
+public final class DistSQLLoadBalanceAlgorithmFixture implements LoadBalanceAlgorithm {
@Override
- public String getType() {
- return "DISTSQL.FIXTURE";
+ public String getTargetName(final String groupName, final List<String> availableTargetNames) {
+ return "Load Balance Algorithm Fixture";
}
@Override
- public String getTargetName(final String groupName, final List<String> availableTargetNames) {
- return "Load Balance Algorithm Fixture";
+ public String getType() {
+ return "DISTSQL.FIXTURE";
}
}
diff --git a/kernel/traffic/distsql/handler/src/test/resources/META-INF/services/org.apache.shardingsphere.infra.algorithm.loadbalancer.core.LoadBalanceAlgorithm b/kernel/traffic/distsql/handler/src/test/resources/META-INF/services/org.apache.shardingsphere.infra.algorithm.loadbalancer.core.LoadBalanceAlgorithm
index 55ed72b0811..1e1baae34a1 100644
--- a/kernel/traffic/distsql/handler/src/test/resources/META-INF/services/org.apache.shardingsphere.infra.algorithm.loadbalancer.core.LoadBalanceAlgorithm
+++ b/kernel/traffic/distsql/handler/src/test/resources/META-INF/services/org.apache.shardingsphere.infra.algorithm.loadbalancer.core.LoadBalanceAlgorithm
@@ -15,4 +15,4 @@
# limitations under the License.
#
-org.apache.shardingsphere.traffic.distsql.handler.fixture.DistSQLLoadBalanceAlgorithmFixture
\ No newline at end of file
+org.apache.shardingsphere.traffic.distsql.handler.fixture.DistSQLLoadBalanceAlgorithmFixture