Skip to content

Commit 392fcbf

Browse files
tswstarplanetkun-song
authored andcommitted
Sort added router list before set the 'routers' field of the RouterChain (#3969)
1 parent d11f204 commit 392fcbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/RouterChain.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public void addRouters(List<Router> routers) {
7979
List<Router> newRouters = new ArrayList<>();
8080
newRouters.addAll(builtinRouters);
8181
newRouters.addAll(routers);
82-
CollectionUtils.sort(routers);
82+
CollectionUtils.sort(newRouters);
8383
this.routers = newRouters;
8484
}
8585

0 commit comments

Comments
 (0)