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

admin/transfer_crates: Replace spawn_blocking() with diesel_async usage #9620

Merged
merged 2 commits into from
Oct 10, 2024

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Oct 10, 2024

similar to #9598

`krate.owners()` runs two queries and loads all details of the users/teams, while all what we want is the number of owners. This commit replaces the call with a simple `SELECT COUNT(*)` query.
@Turbo87 Turbo87 added C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear A-backend ⚙️ labels Oct 10, 2024
Copy link

codecov bot commented Oct 10, 2024

Codecov Report

Attention: Patch coverage is 0% with 22 lines in your changes missing coverage. Please review.

Project coverage is 88.84%. Comparing base (6dc97be) to head (6f600a6).
Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
src/admin/transfer_crates.rs 0.00% 22 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9620      +/-   ##
==========================================
- Coverage   88.86%   88.84%   -0.03%     
==========================================
  Files         289      289              
  Lines       29137    29143       +6     
==========================================
- Hits        25893    25892       -1     
- Misses       3244     3251       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Turbo87 Turbo87 merged commit 8ec7a12 into rust-lang:main Oct 10, 2024
10 checks passed
@Turbo87 Turbo87 deleted the async-transfer branch October 10, 2024 14:10
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