redoom commented on code in PR #15767:
URL: https://github.com/apache/dubbo/pull/15767#discussion_r2534428435
##########
dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/router/affinity/config/AffinityListenableStateRouter.java:
##########
@@ -53,15 +53,14 @@ public abstract class AffinityListenableStateRouter<T>
extends AbstractStateRout
private volatile AffinityStateRouter<T> affinityRouter;
private final String ruleKey;
- public AffinityListenableStateRouter(URL url, String ruleKey) {
+ protected AffinityListenableStateRouter(URL url, String ruleKey) {
super(url);
this.setForce(false);
- this.init(ruleKey);
Review Comment:
I didn't quite get what you meant,AffinityServiceStateRouter.java is
abstract class , so I put init in the subclasses instead.
> Maybe we don't need to modify init? Because you've already decorated it
with the `final`.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]