feat: add arguments for max responses

This commit is contained in:
Ashley Wulber 2025-01-23 17:59:07 -05:00 committed by Michael Murphy
parent 9f8f17a783
commit 0e01b09ddd
6 changed files with 180 additions and 9 deletions

View file

@ -18,7 +18,7 @@ enum Event {
}
pub async fn main() {
let (event_tx, event_rx) = flume::bounded::<Event>(8);
let (event_tx, event_rx) = flume::bounded::<Event>(20);
// Channel for cancelling searches that are in progress.
let (interrupt_tx, interrupt_rx) = flume::bounded::<()>(1);

View file

@ -99,7 +99,7 @@ impl App {
}
async fn reload(&mut self) {
let (tx, rx) = flume::bounded::<ScriptInfo>(8);
let (tx, rx) = flume::bounded::<ScriptInfo>(20);
let mut queue = VecDeque::new();