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:
@@ -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?;
|
||||
|
||||
Reference in New Issue
Block a user