perf[orm]: find thread by threadExecutorMap

This commit is contained in:
jaysunxiao
2024-09-23 19:34:48 +08:00
parent 6dd5b3ac65
commit 082c2fa581
6 changed files with 37 additions and 31 deletions
@@ -93,7 +93,7 @@ public abstract class EventBus {
thread.setUncaughtExceptionHandler((t, e) -> logger.error(t.toString(), e));
var executor = executors[poolNumber];
AssertionUtils.notNull(executor);
ThreadUtils.registerExecutor(thread.getId(), executor);
ThreadUtils.registerSingleThreadExecutor(thread, executor);
return thread;
}
}