1
0
mirror of https://github.com/j178/prek.git synced 2026-03-24 01:20:26 +02:00

Use global CONCURRENCY for repo clone (#1292)

This commit is contained in:
Jo
2025-12-31 11:58:10 +08:00
committed by GitHub
parent c5f127090b
commit df913baafe

View File

@@ -21,6 +21,7 @@ use crate::config::{self, Config, ManifestHook, read_config};
use crate::fs::Simplified;
use crate::git::GIT_ROOT;
use crate::hook::{self, Hook, HookBuilder, Repo};
use crate::run::CONCURRENCY;
use crate::store::{CacheBucket, Store};
use crate::{git, store, warn_user};
@@ -824,7 +825,7 @@ impl Workspace {
Ok::<(), Error>(())
})
.buffer_unordered(5);
.buffer_unordered(*CONCURRENCY);
while let Some(result) = tasks.next().await {
result?;