mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -29,7 +29,7 @@ public class ChannelUtil {
|
||||
try {
|
||||
return AsynchronousChannelGroup.withFixedThreadPool(//
|
||||
poolSize, // 默认线程池大小
|
||||
ThreadFactoryBuilder.create().setNamePrefix("Huool-socket-").build()//
|
||||
ThreadFactoryBuilder.of().setNamePrefix("Huool-socket-").build()//
|
||||
);
|
||||
} catch (final IOException e) {
|
||||
throw new IORuntimeException(e);
|
||||
|
@@ -61,7 +61,7 @@ public class AioServer implements Closeable {
|
||||
try {
|
||||
this.group = AsynchronousChannelGroup.withFixedThreadPool(//
|
||||
config.getThreadPoolSize(), // 默认线程池大小
|
||||
ThreadFactoryBuilder.create().setNamePrefix("Hutool-socket-").build()//
|
||||
ThreadFactoryBuilder.of().setNamePrefix("Hutool-socket-").build()//
|
||||
);
|
||||
this.channel = AsynchronousServerSocketChannel.open(group).bind(address);
|
||||
} catch (final IOException e) {
|
||||
|
Reference in New Issue
Block a user