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

event ~~~graph~~~ cache: listen to the updates to all rooms at once #3122

Merged
merged 4 commits into from
Feb 15, 2024

Conversation

bnjbvr
Copy link
Member

@bnjbvr bnjbvr commented Feb 12, 2024

See changes commit by commit. Sitting on top of #3121.

Part of #3058.

@bnjbvr bnjbvr requested a review from a team as a code owner February 12, 2024 18:26
@bnjbvr bnjbvr requested review from andybalaam and removed request for a team February 12, 2024 18:26
Copy link

codecov bot commented Feb 12, 2024

Codecov Report

Attention: 19 lines in your changes are missing coverage. Please review.

Comparison is base (060eaef) 83.85% compared to head (d46134f) 83.82%.
Report is 14 commits behind head on main.

Files Patch % Lines
crates/matrix-sdk-ui/src/event_cache.rs 64.81% 19 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3122      +/-   ##
==========================================
- Coverage   83.85%   83.82%   -0.03%     
==========================================
  Files         229      230       +1     
  Lines       23706    23725      +19     
==========================================
+ Hits        19879    19888       +9     
- Misses       3827     3837      +10     

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

Copy link
Contributor

@poljar poljar left a comment

Choose a reason for hiding this comment

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

Left a small nit, looks sensible.

@@ -291,6 +297,7 @@ impl ClientInner {
event_handlers: Default::default(),
notification_handlers: Default::default(),
room_update_channels: Default::default(),
room_updates_sender: broadcast::Sender::new(32),
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add a comment why we think this value for the capacity is OK? This does mean up to 32 RoomUpdates will be buffered and max one RoomUpdate will be created per sync?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure.

@bnjbvr bnjbvr enabled auto-merge (rebase) February 15, 2024 17:02
@bnjbvr bnjbvr merged commit 11074d8 into main Feb 15, 2024
34 checks passed
@bnjbvr bnjbvr deleted the event-cache branch February 15, 2024 17:22
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