Removed Debugging
Removed debugging prints
This commit is contained in:
parent
14f5e27406
commit
0b5f8a5561
1 changed files with 3 additions and 3 deletions
|
@ -144,11 +144,11 @@ async def main():
|
||||||
max_workers = int(config['Threads'].get('max_workers', fallback=cpu_threads))
|
max_workers = int(config['Threads'].get('max_workers', fallback=cpu_threads))
|
||||||
|
|
||||||
if max_workers == 0:
|
if max_workers == 0:
|
||||||
print(f"Using all available CPU threads: {cpu_threads}")
|
# print(f"Using all available CPU threads: {cpu_threads}")
|
||||||
max_workers = None # Set to None for ThreadPoolExecutor to use all available threads
|
max_workers = None # Set to None for ThreadPoolExecutor to use all available threads
|
||||||
else:
|
else:
|
||||||
print(f"Number of CPU threads: {cpu_threads}")
|
# print(f"Number of CPU threads: {cpu_threads}")
|
||||||
print(f"Max workers for ThreadPoolExecutor: {max_workers}")
|
# print(f"Max workers for ThreadPoolExecutor: {max_workers}")
|
||||||
|
|
||||||
async with aiohttp.ClientSession() as session:
|
async with aiohttp.ClientSession() as session:
|
||||||
with ThreadPoolExecutor(max_workers=max_workers) as executor:
|
with ThreadPoolExecutor(max_workers=max_workers) as executor:
|
||||||
|
|
Loading…
Reference in a new issue