Skip to content
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

feat: allow different formats for messages streaming/unary #4

Merged
merged 1 commit into from
Nov 29, 2019

Conversation

smira
Copy link
Member

@smira smira commented Nov 29, 2019

Streaming response are never aggregated, so wrapping messages into
repeated container looks like overhead as there will always be just a
single entry in repeated container.

Pass streaming flag down to Backend response building methods to
support this flow.

Test service was adjusted with the new proto layout.

Signed-off-by: Andrey Smirnov smirnov.andrey@gmail.com

Streaming response are never aggregated, so wrapping messages into
`repeated` container looks like overhead as there will always be just a
single entry in `repeated` container.

Pass `streaming` flag down to `Backend` response building methods to
support this flow.

Test service was adjusted with the new proto layout.

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
@smira smira merged commit 5c579a7 into siderolabs:master Nov 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants