perf[orm]: entity cache使用相同的线程去更新

This commit is contained in:
jaysunxiao committed 2021-08-05 17:43:24 +08:00
1 parent 3ef1b7a90e
commit 20dd452697
3 files changed
+6 -2

No files matched your search

@@ -91,6 +91,10 @@ public abstract class EventBus {
return executors[RandomUtils.randomInt(EXECUTORS_SIZE)];
}
public static Executor asyncExecute(int hashcode) {
return executors[Math.abs(hashcode % EXECUTORS_SIZE)];
}
private static void doSubmit(IEvent event, List<IEventReceiver> receiverList) {
for (var receiver : receiverList) {
try {