mirror of
https://gitee.com/san-bing/JChargePointProtocol
synced 2026-05-17 00:08:25 +08:00
线程池命名错误
This commit is contained in:
@@ -79,7 +79,7 @@ public class ShardingThreadPool {
|
|||||||
int partition = hash(hashFunction, hashKey);
|
int partition = hash(hashFunction, hashKey);
|
||||||
|
|
||||||
EXECUTOR_SERVICE_MAP.computeIfAbsent(partition % parallelism,
|
EXECUTOR_SERVICE_MAP.computeIfAbsent(partition % parallelism,
|
||||||
p -> Executors.newFixedThreadPool(1, JCPPThreadFactory.forName("sharding-threads" + p)))
|
p -> Executors.newFixedThreadPool(1, JCPPThreadFactory.forName("sharding-threads-%d" + p)))
|
||||||
.execute(runnable);
|
.execute(runnable);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user