Lazy commit on fry.
This commit is contained in:
parent
bc88774a60
commit
5ea64935d2
@ -266,7 +266,7 @@ if __name__ == "__main__":
|
|||||||
print(f" {tl} {k.ljust(ml + 1)} {flags}")
|
print(f" {tl} {k.ljust(ml + 1)} {flags}")
|
||||||
# print(json.dumps(dat, indent = 2))
|
# print(json.dumps(dat, indent = 2))
|
||||||
elif sys.argv[1] in list( [ "sync", "lc", "lcs", "pull", "push", "fetch" ] ):
|
elif sys.argv[1] in list( [ "sync", "lc", "lcs", "pull", "push", "fetch" ] ):
|
||||||
thread_count = 10
|
thread_count = 20
|
||||||
with concurrent.futures.ThreadPoolExecutor(max_workers=thread_count) as executor:
|
with concurrent.futures.ThreadPoolExecutor(max_workers=thread_count) as executor:
|
||||||
futures = {executor.submit(perform_action, sys.argv[1], k, cfg[k]) for k in r}
|
futures = {executor.submit(perform_action, sys.argv[1], k, cfg[k]) for k in r}
|
||||||
for future in concurrent.futures.as_completed(futures):
|
for future in concurrent.futures.as_completed(futures):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user