Skip to content

Conversation

@Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Nov 8, 2024

The email sending code is still sync and needs to be in a spawn_blocking() block for now, but the rest of the regenerate_token_and_send() can be converted to use async database queries.

Related:

@Turbo87 Turbo87 added C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear A-backend ⚙️ labels Nov 8, 2024
@Turbo87 Turbo87 requested a review from eth3lbert November 8, 2024 16:28
@codecov
Copy link

codecov bot commented Nov 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.00%. Comparing base (9393e1b) to head (6bdf1af).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9879      +/-   ##
==========================================
- Coverage   89.00%   89.00%   -0.01%     
==========================================
  Files         290      290              
  Lines       30080    30083       +3     
==========================================
+ Hits        26773    26775       +2     
- Misses       3307     3308       +1     

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

Copy link
Contributor

@eth3lbert eth3lbert left a comment

Choose a reason for hiding this comment

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

nice!

@bors

This comment was marked as outdated.

The email sending code is still sync and needs to be in a `spawn_blocking()` block for now, but the rest of the `regenerate_token_and_send()` can be converted to use async database queries.
@Turbo87
Copy link
Member Author

Turbo87 commented Nov 10, 2024

Rebased this on top of #9888 to take advantage of the new tests and ensure that this does not unintentionally break anything.

@Turbo87 Turbo87 enabled auto-merge (squash) November 10, 2024 13:40
@Turbo87 Turbo87 merged commit 2809a21 into rust-lang:main Nov 10, 2024
8 checks passed
@Turbo87 Turbo87 deleted the async-regen branch November 10, 2024 13:46
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.

3 participants