-
Notifications
You must be signed in to change notification settings - Fork 3.9k
examples:Client and Server sharing example #9969
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
examples/src/main/java/io/grpc/examples/multiplex/MultiplexingServer.java
Outdated
Show resolved
Hide resolved
examples/src/main/java/io/grpc/examples/multiplex/EchoServer.java
Outdated
Show resolved
Hide resolved
examples/src/main/java/io/grpc/examples/multiplex/EchoServer.java
Outdated
Show resolved
Hide resolved
examples/src/main/java/io/grpc/examples/multiplex/EchoServer.java
Outdated
Show resolved
Hide resolved
examples/src/main/java/io/grpc/examples/multiplex/SharingClient.java
Outdated
Show resolved
Hide resolved
examples/src/main/java/io/grpc/examples/multiplex/SharingClient.java
Outdated
Show resolved
Hide resolved
examples/src/main/java/io/grpc/examples/multiplex/EchoServer.java
Outdated
Show resolved
Hide resolved
try { | ||
SharingClient client = new SharingClient(channel); | ||
|
||
CountDownLatch finishLatch = client.initiateEchos(echoInput, echoOutput); |
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.
You might consider using the future stub instead. It makes waiting much more natural.
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.
Switched to future, but kept streaming stub
c5904cf
to
6386cda
Compare
@YifeiZhuang Ready for rereview |
examples/src/main/java/io/grpc/examples/multiplex/SharingClient.java
Outdated
Show resolved
Hide resolved
examples/src/main/java/io/grpc/examples/multiplex/SharingClient.java
Outdated
Show resolved
Hide resolved
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.
Only one more comment, otherwise LGTM.
Part of example Fixit
Fixes b/259285817