From 35d0d6c3b352adcdd5cb30e1dbc1438d521861a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Casta=C3=B1o=20Arteaga?= Date: Thu, 10 Aug 2023 20:20:12 +0200 Subject: [PATCH] Reduce number of concurrent requests to GitHub MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sergio CastaƱo Arteaga --- clowarden-core/src/services/github/state.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clowarden-core/src/services/github/state.rs b/clowarden-core/src/services/github/state.rs index ad038b1..5395fcd 100644 --- a/clowarden-core/src/services/github/state.rs +++ b/clowarden-core/src/services/github/state.rs @@ -159,7 +159,7 @@ impl State { ..Default::default() }) }) - .buffer_unordered(8) + .buffer_unordered(4) .collect::>>() .await { @@ -211,7 +211,7 @@ impl State { visibility: Some(repo.visibility.into()), }) }) - .buffer_unordered(8) + .buffer_unordered(4) .collect::>>() .await {