mirror of
https://gitee.com/san-bing/JChargePointProtocol
synced 2026-05-09 04:19:55 +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" + p)))
|
||||||
.execute(runnable);
|
.execute(runnable);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user