Skip to content

Commit

Permalink
inprocess: Add missing anonymous address as supported
Browse files Browse the repository at this point in the history
  • Loading branch information
ejona86 committed Nov 27, 2023
1 parent 24b3ca1 commit 69114bf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -289,7 +289,7 @@ public void close() {

@Override
public Collection<Class<? extends SocketAddress>> getSupportedSocketAddressTypes() {
return Collections.singleton(InProcessSocketAddress.class);
return Arrays.asList(InProcessSocketAddress.class, AnonymousInProcessSocketAddress.class);
}
}
}

0 comments on commit 69114bf

Please sign in to comment.