From 69114bfb475fe2d9a0c1da1c0a397daccb75c2e2 Mon Sep 17 00:00:00 2001 From: Eric Anderson Date: Wed, 22 Nov 2023 13:35:42 -0800 Subject: [PATCH] inprocess: Add missing anonymous address as supported --- .../main/java/io/grpc/inprocess/InProcessChannelBuilder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inprocess/src/main/java/io/grpc/inprocess/InProcessChannelBuilder.java b/inprocess/src/main/java/io/grpc/inprocess/InProcessChannelBuilder.java index ccc176b61cf..c000b66b2a2 100644 --- a/inprocess/src/main/java/io/grpc/inprocess/InProcessChannelBuilder.java +++ b/inprocess/src/main/java/io/grpc/inprocess/InProcessChannelBuilder.java @@ -33,8 +33,8 @@ import io.grpc.internal.ManagedChannelImplBuilder.ClientTransportFactoryBuilder; import io.grpc.internal.SharedResourceHolder; import java.net.SocketAddress; +import java.util.Arrays; import java.util.Collection; -import java.util.Collections; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; import javax.annotation.Nullable; @@ -289,7 +289,7 @@ public void close() { @Override public Collection> getSupportedSocketAddressTypes() { - return Collections.singleton(InProcessSocketAddress.class); + return Arrays.asList(InProcessSocketAddress.class, AnonymousInProcessSocketAddress.class); } } }