mirror of
https://github.com/chatmail/core.git
synced 2026-04-25 09:26:30 +03:00
feat: increase event channel size from 1000 to 10000
SQL migration to key contacts generates a lot of events, and they are dropped in desktop logs because it does not read the events fast enough. This at least reduces the number of dropped messages.
This commit is contained in:
@@ -27,7 +27,7 @@ impl Default for Events {
|
||||
impl Events {
|
||||
/// Creates a new event channel.
|
||||
pub fn new() -> Self {
|
||||
let (mut sender, _receiver) = async_broadcast::broadcast(1_000);
|
||||
let (mut sender, _receiver) = async_broadcast::broadcast(10_000);
|
||||
|
||||
// We only keep this receiver around
|
||||
// to prevent the channel from closing.
|
||||
|
||||
Reference in New Issue
Block a user