Skip to content

github: Use async reqwest client #7478

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 1 commit into from
Nov 9, 2023
Merged

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Nov 8, 2023

This is roughly similar to #7475 and converts our GitHubClient implementations to use async functions and an async reqwest client instead.

This unfortunately requires us to sprinkle a few Handle::current().block_on(...) calls across the codebase due to the usage of these functions within conduit_compat() (aka. spawn_blocking()) calls. I've tested this out on our staging environment and it looked like everything still works as intended. If anyone knows a reason why we should us block_on() like that please do let me know! 😅

@Turbo87 Turbo87 added C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear A-backend ⚙️ labels Nov 8, 2023
@Turbo87 Turbo87 requested a review from a team November 8, 2023 14:03
@Turbo87 Turbo87 merged commit 4e1c640 into rust-lang:main Nov 9, 2023
@Turbo87 Turbo87 deleted the async-github branch November 9, 2023 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-backend ⚙️ C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant