perf[net]: 重构net的task dispatcher

This commit is contained in:
jaysunxiao committed 2021-10-13 22:02:45 +08:00
1 parent 2610334776
commit e8aab562aa
15 files changed
+110 -117

No files matched your search

@@ -91,7 +91,7 @@ public abstract class EventBus {
return executors[RandomUtils.randomInt(EXECUTORS_SIZE)];
}
public static Executor asyncExecute(int hashcode) {
public static Executor execute(int hashcode) {
return executors[Math.abs(hashcode % EXECUTORS_SIZE)];
}