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

Replace async-std with equivalent tokio functionality #2801

Merged
merged 3 commits into from Nov 2, 2023

Conversation

jplatte
Copy link
Collaborator

@jplatte jplatte commented Nov 1, 2023

I decided to take another look at our use of async-std, and AFAICT we are not actually requiring any Condvar-specific functionality (I think the only case where it does more than tokio's Notify is when a specific piece of code wants to queue up to be "next in line" to operate on the mutex after the wait condition is fulfilled).

We also got a new use in an example, but that was even easier to remove.

Requesting rich's review in addition to one from the team because he added the use of async-stds Condvar.

matrix-sdk-common and matrix-sdk-crypto were repeating things that would
be inherited from the workspace dependency specification anyways.
@jplatte jplatte requested a review from richvdh November 1, 2023 11:29
@jplatte jplatte requested a review from a team as a code owner November 1, 2023 11:29
@jplatte jplatte requested review from bnjbvr and poljar and removed request for a team and bnjbvr November 1, 2023 11:29
Copy link

codecov bot commented Nov 1, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (8de33f6) 81.36% compared to head (84f1a2a) 81.70%.
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2801      +/-   ##
==========================================
+ Coverage   81.36%   81.70%   +0.34%     
==========================================
  Files         204      204              
  Lines       21051    21052       +1     
==========================================
+ Hits        17128    17201      +73     
+ Misses       3923     3851      -72     
Files Coverage Δ
crates/matrix-sdk-crypto/src/store/caches.rs 91.30% <100.00%> (+3.00%) ⬆️
crates/matrix-sdk-crypto/src/store/mod.rs 85.26% <100.00%> (+0.12%) ⬆️

... and 21 files with indirect coverage changes

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

Copy link
Member

@Hywan Hywan left a comment

Choose a reason for hiding this comment

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

LGTM!

@jplatte jplatte removed the request for review from poljar November 2, 2023 13:11
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

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

seems plausible to me

crates/matrix-sdk-crypto/src/store/mod.rs Outdated Show resolved Hide resolved
@jplatte jplatte merged commit 4485abb into main Nov 2, 2023
35 checks passed
@jplatte jplatte deleted the jplatte/rm-async-std branch November 2, 2023 16:21
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.

None yet

3 participants