From cf93ac9b219df5f41e1528e05c1e4a7600a0264d Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Sun, 8 Nov 2020 15:20:55 +0100 Subject: [PATCH] actually use provided number of workers --- dotdrop/dotdrop.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dotdrop/dotdrop.py b/dotdrop/dotdrop.py index ef6f379..a517ade 100644 --- a/dotdrop/dotdrop.py +++ b/dotdrop/dotdrop.py @@ -24,7 +24,6 @@ from dotdrop.exceptions import YamlException, UndefinedException LOG = Logger() TRANS_SUFFIX = 'trans' -INST_WORKERS = 10 ########################################################### # entry point @@ -191,7 +190,7 @@ def cmd_install(o): # install each dotfile if o.install_parallel > 1: # in parallel - ex = futures.ThreadPoolExecutor(max_workers=INST_WORKERS) + ex = futures.ThreadPoolExecutor(max_workers=o.install_parallel) wait_for = [ ex.submit(_dotfile_install, o, dotfile, tmpdir=tmpdir)