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

refactor(event cache): a few AllEventsCache refactorings #4471

Merged
merged 8 commits into from
Jan 7, 2025

Conversation

bnjbvr
Copy link
Member

@bnjbvr bnjbvr commented Jan 7, 2025

I was investigating a potential deadlock with the event cache storage, and only found a few places where to make the code a bit more idiomatic and more readable.

Should be reviewed commit by commit.

@bnjbvr bnjbvr requested a review from a team as a code owner January 7, 2025 15:52
@bnjbvr bnjbvr requested review from jmartinesp and removed request for a team January 7, 2025 15:52
Copy link
Contributor

@jmartinesp jmartinesp left a comment

Choose a reason for hiding this comment

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

Thanks, the changes make the code way more readable!

Copy link

codecov bot commented Jan 7, 2025

Codecov Report

Attention: Patch coverage is 90.56604% with 5 lines in your changes missing coverage. Please review.

Project coverage is 85.07%. Comparing base (618e472) to head (6de91de).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
crates/matrix-sdk/src/event_cache/mod.rs 89.58% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4471      +/-   ##
==========================================
- Coverage   85.07%   85.07%   -0.01%     
==========================================
  Files         283      283              
  Lines       31775    31777       +2     
==========================================
+ Hits        27033    27034       +1     
- Misses       4742     4743       +1     

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

@bnjbvr bnjbvr merged commit 2ef14de into main Jan 7, 2025
39 of 40 checks passed
@bnjbvr bnjbvr deleted the bnjbvr/all-event-cache branch January 7, 2025 16:25
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