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

fix(volo-thrift): remove static lifetime anno for context method #461

Merged
merged 5 commits into from
Jul 3, 2024

Conversation

Ggiggle
Copy link
Contributor

@Ggiggle Ggiggle commented Jul 3, 2024

Motivation

Method as one field of client context is assigned by user. However, the previous lifetime bound would only receive 'static str, which might be impossible for user, for example, the universal interface platform, which get method from upstream.

Solution

We relax the lifetime constraint for make_cx interface.

@Ggiggle Ggiggle requested review from a team as code owners July 3, 2024 07:42
PureWhiteWu
PureWhiteWu previously approved these changes Jul 3, 2024
Millione
Millione previously approved these changes Jul 3, 2024
@Ggiggle Ggiggle dismissed stale reviews from Millione and PureWhiteWu via fad0cbf July 3, 2024 08:03
@Ggiggle Ggiggle enabled auto-merge (squash) July 3, 2024 08:27
@Ggiggle Ggiggle merged commit b150284 into main Jul 3, 2024
15 checks passed
@Ggiggle Ggiggle deleted the fix/cx_method_lifetime branch July 3, 2024 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants