Shuffle third-party package links to perform a load balance

This commit is contained in:
burningtnt 2025-09-20 13:51:13 +08:00
parent 8f5e2084ba
commit d999ede4e0
No known key found for this signature in database
GPG Key ID: 18A43F21F9ACE8C4

View File

@ -123,6 +123,7 @@ public final class TerracottaMetadata {
));
}
Collections.shuffle(packageLinks);
PACKAGE_LINKS = Collections.unmodifiableList(packageLinks);
} else {
PACKAGE_LINKS = null;