relay: shorten worker queue length from 1024 to 8

This commit is contained in:
Astro 2023-10-09 02:25:25 +02:00
parent 712cc328e1
commit 52cfe9c493

View file

@ -101,7 +101,7 @@ struct Job {
} }
fn spawn_worker(client: Arc<reqwest::Client>) -> Sender<Job> { fn spawn_worker(client: Arc<reqwest::Client>) -> Sender<Job> {
let (tx, mut rx) = channel(1024); let (tx, mut rx) = channel(8);
tokio::spawn(async move { tokio::spawn(async move {
let mut errors = 0u32; let mut errors = 0u32;