Avoid warning Unknown channel option 'SO_KEEPALIVE' on Mac
Signed-off-by: Max Lambrecht <maxlambrecht@gmail.com>
This commit is contained in:
parent
a58aa9925b
commit
a203cf450f
|
|
@ -69,6 +69,8 @@ public class GrpcManagedChannelFactory {
|
||||||
// nThreads = 0 -> use Netty default
|
// nThreads = 0 -> use Netty default
|
||||||
KQueueEventLoopGroup kQueueEventLoopGroup = new KQueueEventLoopGroup(0, executorService);
|
KQueueEventLoopGroup kQueueEventLoopGroup = new KQueueEventLoopGroup(0, executorService);
|
||||||
channelBuilder.eventLoopGroup(kQueueEventLoopGroup)
|
channelBuilder.eventLoopGroup(kQueueEventLoopGroup)
|
||||||
|
// avoid warning Unknown channel option 'SO_KEEPALIVE'
|
||||||
|
.withOption(ChannelOption.SO_KEEPALIVE, null)
|
||||||
.channelType(KQueueDomainSocketChannel.class);
|
.channelType(KQueueDomainSocketChannel.class);
|
||||||
return kQueueEventLoopGroup;
|
return kQueueEventLoopGroup;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue