修正线程前缀

This commit is contained in:
三丙
2024-10-11 14:37:42 +08:00
parent 3ec2f97933
commit 698f4f9b6d

View File

@@ -79,7 +79,7 @@ public class ShardingThreadPool {
int partition = hash(hashFunction, hashKey);
EXECUTOR_SERVICE_MAP.computeIfAbsent(partition % parallelism,
p -> Executors.newFixedThreadPool(1, JCPPThreadFactory.forName("sharding-threads-" + p)))
p -> Executors.newFixedThreadPool(1, JCPPThreadFactory.forName("sharding-threads" + p)))
.execute(runnable);
}
}