Skip to content

Commit e39946d

Browse files
committed
Undo NonBlockingStatsDClientBuilder changes
1 parent 8ef76d7 commit e39946d

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/main/java/com/timgroup/statsd/NonBlockingStatsDClientBuilder.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -376,15 +376,6 @@ protected static Callable<SocketAddress> staticUnixResolution(
376376
final UnixSocketAddressWithTransport.TransportType transportType) {
377377
return new Callable<SocketAddress>() {
378378
@Override public SocketAddress call() {
379-
if (ClientChannelUtils.hasNativeUdsSupport()) {
380-
try {
381-
Class<?> udsAddressClass = Class.forName("java.net.UnixDomainSocketAddress");
382-
Object udsAddress = udsAddressClass.getMethod("of", String.class).invoke(null, path);
383-
return new UnixSocketAddressWithTransport((SocketAddress) udsAddress, transportType);
384-
} catch (ReflectiveOperationException e) {
385-
// Fall back to JNR implementation
386-
}
387-
}
388379
final UnixSocketAddress socketAddress = new UnixSocketAddress(path);
389380
return new UnixSocketAddressWithTransport(socketAddress, transportType);
390381
}

0 commit comments

Comments
 (0)