-
Notifications
You must be signed in to change notification settings - Fork 4k
cronet: allow application to provide all threads #4249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ab38b4c to
c84e86a
Compare
c84e86a to
06036c0
Compare
| new TaggingStreamFactory( | ||
| cronetEngine, trafficStatsTagSet, trafficStatsTag, trafficStatsUidSet, trafficStatsUid), | ||
| MoreExecutors.directExecutor(), | ||
| MoreExecutors.directExecutor(), scheduledExecutorService, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be two separate lines
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
| import io.grpc.MethodDescriptor; | ||
| import io.grpc.cronet.CronetChannelBuilder.CronetTransportFactory; | ||
| import io.grpc.internal.ClientTransportFactory; | ||
| import io.grpc.internal.ConnectionClientTransport; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
| assertSame(builder, builder1); | ||
|
|
||
| ClientTransportFactory clientTransportFactory = builder1.buildTransportFactory(); | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: unnecessary empty line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
dapengzhang0
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the review.
| new TaggingStreamFactory( | ||
| cronetEngine, trafficStatsTagSet, trafficStatsTag, trafficStatsUidSet, trafficStatsUid), | ||
| MoreExecutors.directExecutor(), | ||
| MoreExecutors.directExecutor(), scheduledExecutorService, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
| import io.grpc.MethodDescriptor; | ||
| import io.grpc.cronet.CronetChannelBuilder.CronetTransportFactory; | ||
| import io.grpc.internal.ClientTransportFactory; | ||
| import io.grpc.internal.ConnectionClientTransport; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
| assertSame(builder, builder1); | ||
|
|
||
| ClientTransportFactory clientTransportFactory = builder1.buildTransportFactory(); | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
This is the cronet counterpart of #4139 and #4150.