diff options
author | Eric Anderson <ejona@google.com> | 2018-07-02 10:47:40 -0700 |
---|---|---|
committer | Eric Anderson <ejona@google.com> | 2018-07-09 13:00:17 -0700 |
commit | 9d6241eedce849493b86320a995fd27775f0bd40 (patch) | |
tree | de2db959ee7d141e6f330a6f210a1bef6f6d969c /testing | |
parent | 2b48210b73879767f4895c67d8c4e7787618b610 (diff) | |
download | grpc-grpc-java-9d6241eedce849493b86320a995fd27775f0bd40.tar.gz |
Propagate EquivalentAddressGroup attributes to transports
Most of the changes are changing the signature of newClientTransport.
Since this is annoying, I choose to introduce a ClientTransportOptions
object to avoid the churn in the future.
With ClientTransportOptions in place, there's only a few lines necessary
of plumbing for the Attributes: add the field to ClientTransportOptions
and populate it in InternalSubchannel. There are no consumers of the
field in this commit.
Diffstat (limited to 'testing')
-rw-r--r-- | testing/src/main/java/io/grpc/internal/testing/AbstractClientTransportFactoryTest.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/testing/src/main/java/io/grpc/internal/testing/AbstractClientTransportFactoryTest.java b/testing/src/main/java/io/grpc/internal/testing/AbstractClientTransportFactoryTest.java index b4b8772f5..b2578240b 100644 --- a/testing/src/main/java/io/grpc/internal/testing/AbstractClientTransportFactoryTest.java +++ b/testing/src/main/java/io/grpc/internal/testing/AbstractClientTransportFactoryTest.java @@ -40,6 +40,7 @@ public abstract class AbstractClientTransportFactoryTest { ClientTransportFactory transportFactory = newClientTransportFactory(); transportFactory.close(); transportFactory.newClientTransport( - new InetSocketAddress("localhost", 12345), "localhost:" + 12345, "agent", null); + new InetSocketAddress("localhost", 12345), + new ClientTransportFactory.ClientTransportOptions()); } } |