diff --git a/consumer.py b/consumer.py index 764c229..09f4db0 100644 --- a/consumer.py +++ b/consumer.py @@ -15,9 +15,7 @@ class QueueManager(BaseManager): def cpu_work(work_units): - x = 0 - for w in range(work_units * 1_000_000): - x += 1 + x = sum(1 for _ in range(work_units * 1_000_000)) def consumer(r_manger):