mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-15 00:18:04 +00:00
del[net]: remove unnecessary thread constructor parameters
This commit is contained in:
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));
|
||||
|
||||
Reference in new issue
Block a user