feat(base): Increase the room_info_notable_update_sender capacity.

This broadcast channel can easily be overflowed if more than 100 updates
arrive at the time. This patch extends the capacity to 2^16 - 1.
This commit is contained in:
Ivan Enderlin
2024-09-17 15:25:37 +02:00
parent 7a2728f8b5
commit 72febaee57
+1 -1
View File
@@ -143,7 +143,7 @@ impl BaseClient {
/// previous login call.
pub fn with_store_config(config: StoreConfig) -> Self {
let (room_info_notable_update_sender, _room_info_notable_update_receiver) =
broadcast::channel(100);
broadcast::channel(u16::MAX as usize);
BaseClient {
store: Store::new(config.state_store),