Skip to content

chore: refactor wrap method helper into a macro #2111

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

Merged
merged 6 commits into from
Aug 30, 2024

Conversation

ohmayr
Copy link
Contributor

@ohmayr ohmayr commented Aug 28, 2024

This PR does the following:

  • adds a kind property to async gRPC transport similar to sync gRPC.
  • implements a macro to call _prep_wrapped_messages; can be re-used for async REST.
  • implements a macro to add a helper for conditionally calling wrap_method with the kind property configured.

@ohmayr ohmayr requested a review from a team as a code owner August 28, 2024 18:38
@product-auto-label product-auto-label bot added the size: l Pull request size is large. label Aug 28, 2024
@ohmayr ohmayr force-pushed the refactor-wrap-method-macro branch from cae7e99 to 94a46f4 Compare August 28, 2024 18:38
@ohmayr ohmayr force-pushed the refactor-wrap-method-macro branch from 8c77cc0 to af98897 Compare August 28, 2024 19:33
Copy link
Contributor

@vchudnov-g vchudnov-g left a comment

Choose a reason for hiding this comment

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

OK, please address the comments here about enforcing macro contracts, but otherwise LGTM now. Thanks for working on this and answering my questions!

@ohmayr
Copy link
Contributor Author

ohmayr commented Aug 29, 2024

OK, please address the comments here about enforcing macro contracts, but otherwise LGTM now. Thanks for working on this and answering my questions!

I've updated the contract and will shortly be merging this. Thanks for the feedback!

@ohmayr ohmayr changed the title chore: refactor wrapping method helper into a macro chore: refactor wrapping wrap helper into a macro Aug 30, 2024
@ohmayr ohmayr changed the title chore: refactor wrapping wrap helper into a macro chore: refactor wrap method helper into a macro Aug 30, 2024
@ohmayr ohmayr merged commit 1967aa1 into main Aug 30, 2024
67 checks passed
@ohmayr ohmayr deleted the refactor-wrap-method-macro branch August 30, 2024 04:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: l Pull request size is large.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants