Skip to content

Commit 53ebf2c

Browse files
committed
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.
1 parent f3eea99 commit 53ebf2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/events.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ impl Default for Events {
2727
impl Events {
2828
/// Creates a new event channel.
2929
pub fn new() -> Self {
30-
let (mut sender, _receiver) = async_broadcast::broadcast(1_000);
30+
let (mut sender, _receiver) = async_broadcast::broadcast(10_000);
3131

3232
// We only keep this receiver around
3333
// to prevent the channel from closing.

0 commit comments

Comments
 (0)