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

Require Calls in Dispatch requests #33

Closed
wants to merge 1 commit into from
Closed

Require Calls in Dispatch requests #33

wants to merge 1 commit into from

Conversation

Pryz
Copy link
Contributor

@Pryz Pryz commented May 27, 2024

Use buf validate to ensure that DispatchRequest(s) contains Calls.

Copy link
Contributor

@achille-roussel achille-roussel left a comment

Choose a reason for hiding this comment

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

There are valid use cases for sending requests with an empty list of calls, for example if a batch is constructed dynamically and ends up with zero calls but the control flow still sends the request. It would force the client code to deal with this special case if we denied it, which means handling it in each integration point with Dispatch instead of just allowing it server-side.

Do you have more context on what motivated this change?

@Pryz Pryz closed this May 28, 2024
@Pryz Pryz deleted the required-calls branch May 28, 2024 03:00
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.

2 participants