mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-15 06:16:21 +00:00
perf[net]: 重构net的task dispatcher
This commit is contained in:
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)];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user