Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion stub/src/main/java/io/grpc/kotlin/ServerCalls.kt
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,6 @@ object ServerCalls {
"requests flow can only be collected once"
}

call.request(1)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is inside the flow

try {
for (request in requestsChannel) {
emit(request)
Expand Down Expand Up @@ -268,6 +267,8 @@ object ServerCalls {
mutex.withLock { call.close(closeStatus, trailers) }
}

call.request(1)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved outside the flow. Made it a bit more eager.


return object: ServerCall.Listener<RequestT>() {
var isReceiving = true

Expand Down