-
Notifications
You must be signed in to change notification settings - Fork 270
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
Conversation
Codecov ReportAttention:
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. |
There was a problem hiding this 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), |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure.
(instead of having to subscribe to a single room in the event cache)
See changes commit by commit. Sitting on top of #3121.
Part of #3058.