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

Get error cause once #287

Merged
merged 1 commit into from
Oct 20, 2024
Merged

Conversation

atifaziz
Copy link
Contributor

This PR replaces two calls to get the __cause__ attribute's value (exception.GetAttr("__cause__")) with a single one in order to avoid two hops across the marshalling boundary as well as allocations of the name.

@tonybaloney
Copy link
Owner

We probably need to extend the test cases for this as well

@tonybaloney tonybaloney merged commit 68bf2d4 into tonybaloney:main Oct 20, 2024
37 checks passed
@atifaziz atifaziz deleted the get-err-cause-once branch October 21, 2024 06:50
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