Skip to content

Commit

Permalink
Use DnsNameResolverBuilder#datagramChannelFactory instead of the depr…
Browse files Browse the repository at this point in the history
…ecated DnsNameResolverBuilder#channelFactory (#3598)

Signed-off-by: Violeta Georgieva <[email protected]>
  • Loading branch information
violetagg authored Jan 21, 2025
1 parent c91598a commit 9408902
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2020-2024 VMware, Inc. or its affiliates, All Rights Reserved.
* Copyright (c) 2020-2025 VMware, Inc. or its affiliates, All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -573,7 +573,7 @@ public DnsAddressResolverGroup newNameResolverGroup(LoopResources defaultLoopRes
.ndots(ndots)
.queryTimeoutMillis(queryTimeout.toMillis())
.eventLoop(group.next())
.channelFactory(() -> loop.onChannel(DatagramChannel.class, group))
.datagramChannelFactory(() -> loop.onChannel(DatagramChannel.class, group))
.socketChannelFactory(() -> loop.onChannel(SocketChannel.class, group), retryTcpOnTimeout);
if (bindAddressSupplier != null) {
// There is no check for bindAddressSupplier.get() == null
Expand Down

0 comments on commit 9408902

Please sign in to comment.