-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pubsub: check early if streaming iterator is already drained
Fix the fake streaming server to behave more realistically, by waiting for a CloseSend from the client before ending the stream. This revealed that the streaming iterator has an unnecessary delay, due to the stop method blocking on the channel when there were no more messages. So we now check that case before reading from the channel. Also, s/Skip/SkipNow/ in tests. Change-Id: Iacd826c07f6d327475c69e5002cab2381e47d9a5 Reviewed-on: https://code-review.googlesource.com/11374 Reviewed-by: kokoro <[email protected]> Reviewed-by: Michael Darakananda <[email protected]> Reviewed-by: Kamal Aboul-Hosn <[email protected]>
- Loading branch information
Showing
3 changed files
with
15 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters