Skip to content

Conversation

@kristopherbullinger
Copy link
Contributor

when using Arc<HaberdasherApiServer> from the example in the README, infinite recursion occurs due to the methods in the impl HaberDasherService for Arc<T: HaberdasherService> block resolving to a recursive one. By explicitly calling the inner type T's method with the fully qualified method syntax, we can avoid this ambiguity.

@kristopherbullinger kristopherbullinger requested a review from a team as a code owner September 23, 2024 19:19
@kristopherbullinger kristopherbullinger changed the title use fully qualified syntax for calling T service methods stack overflow fix: use fully-qualified T method syntax Sep 23, 2024
Copy link
Contributor

@jorendorff jorendorff left a comment

Choose a reason for hiding this comment

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

Thank you for the fix.

@tclem tclem added this pull request to the merge queue Sep 23, 2024
Merged via the queue into github:main with commit 247b54d Sep 23, 2024
2 checks passed
@CleanCut
Copy link
Contributor

This PR was included in v0.8.0, released today.

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.

4 participants