Skip to content

Commit

Permalink
Changed Revert to generator compression from list compression
Browse files Browse the repository at this point in the history
  • Loading branch information
Attumm committed Aug 2, 2024
1 parent c48120b commit 62f71e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions meesee.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ def run_worker(func, func_kwargs, on_failure_func, config, worker_id, init_kwarg

def startapp(func, func_kwargs={}, workers=10, config=config, on_failure_func=None, init_kwargs={}):
with Pool(workers) as p:
args = [(func, func_kwargs, on_failure_func, config, worker_id, init_kwargs)
for worker_id in range(1, workers + 1)]
args = ((func, func_kwargs, on_failure_func, config, worker_id, init_kwargs)
for worker_id in range(1, workers + 1))
try:
p.starmap(run_worker, args)
except (KeyboardInterrupt, SystemExit):
Expand Down

0 comments on commit 62f71e7

Please sign in to comment.