Skip to content

Commit 22b6090

Browse files
committed
events: work around the bug in concurrent-queue
Use power of 2 channel capacity to avoid occasional out of bounds access panic.
1 parent e387b4f commit 22b6090

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/events.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub struct Events {
1818

1919
impl Default for Events {
2020
fn default() -> Self {
21-
let (sender, receiver) = channel::bounded(1_000);
21+
let (sender, receiver) = channel::bounded(1_024);
2222

2323
Self { receiver, sender }
2424
}

0 commit comments

Comments
 (0)