update 优化 替换过期方法

This commit is contained in:
疯狂的狮子Li
2024-01-14 22:45:33 +08:00
parent d3878d03db
commit ecca4bb5f6
5 changed files with 13 additions and 13 deletions

View File

@@ -61,7 +61,7 @@ public class PowerJobConfig{
if (worker.getPort() != null) {
config.setPort(worker.getPort());
} else {
int port = worker.getAkkaPort();
int port = worker.getPort();
if (port <= 0) {
port = NetUtils.getRandomPort();
}