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

feat(catalog): Propagate ctx from catalog interface through call stack #276

Merged
merged 4 commits into from
Jan 30, 2025

Conversation

curtisr7
Copy link
Contributor

In general we should pass context.Context through call path rather than creating context.Background at random places.

I made this change in response to this comment. I'll fix the original problem in a subsequent PR.

catalog/glue/glue.go Outdated Show resolved Hide resolved
catalog/rest/rest.go Outdated Show resolved Hide resolved
@curtisr7 curtisr7 force-pushed the rgc/catalog-ctx branch 2 times, most recently from 443bbe6 to 53ddb06 Compare January 29, 2025 17:52
Copy link
Member

@zeroshade zeroshade left a comment

Choose a reason for hiding this comment

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

Looks good to me, just a small nitpick that's only tangential to the code you're changing.

Also gotta fix the build errors :)

catalog/registry.go Outdated Show resolved Hide resolved
catalog/registry.go Outdated Show resolved Hide resolved
@zeroshade zeroshade changed the title Propagate ctx from catalog interface through call stack feat(catalog): Propagate ctx from catalog interface through call stack Jan 29, 2025
Copy link
Member

@zeroshade zeroshade left a comment

Choose a reason for hiding this comment

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

Awesome! Thanks!

@zeroshade zeroshade merged commit 97a9566 into apache:main Jan 30, 2025
10 checks passed
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