From 72febaee5735c49bb81cf6038f379e0f2362e02a Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Tue, 17 Sep 2024 15:25:37 +0200 Subject: [PATCH] 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. --- crates/matrix-sdk-base/src/client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/matrix-sdk-base/src/client.rs b/crates/matrix-sdk-base/src/client.rs index 586192b39..780d3300c 100644 --- a/crates/matrix-sdk-base/src/client.rs +++ b/crates/matrix-sdk-base/src/client.rs @@ -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),