del[net]: remove unnecessary thread constructor parameters

This commit is contained in:
godotg committed 2022-12-22 21:05:08 +08:00
1 parent 2df2f31e62
commit f1f991c742
4 files changed
+4 -4

No files matched your search

@@ -83,7 +83,7 @@ public abstract class EventBus {
@Override
public Thread newThread(Runnable runnable) {
var threadName = StringUtils.format("event-p{}-t{}", poolNumber + 1, threadNumber.getAndIncrement());
var thread = new FastThreadLocalThread(group, runnable, threadName, 0);
var thread = new FastThreadLocalThread(group, runnable, threadName);
thread.setDaemon(false);
thread.setPriority(Thread.NORM_PRIORITY);
thread.setUncaughtExceptionHandler((t, e) -> logger.error(t.toString(), e));