mirror of
https://github.com/codeflash-ai/codeflash.git
synced 2026-05-04 18:25:17 +00:00
gha failing on multithreaded t est
This commit is contained in:
parent
605d078f9f
commit
78871fe1df
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ def multithreaded_sorter(unsorted_lists: list[list[int]]) -> list[list[int]]:
|
|||
sorted_lists = [None] * len(unsorted_lists)
|
||||
|
||||
# Use ThreadPoolExecutor to manage threads
|
||||
with concurrent.futures.ThreadPoolExecutor(max_workers=4) as executor:
|
||||
with concurrent.futures.ThreadPoolExecutor(max_workers=2) as executor:
|
||||
# Submit all sorting tasks and map them to their original indices
|
||||
future_to_index = {
|
||||
executor.submit(sorter, unsorted_list): i
|
||||
|
|
|
|||
Loading…
Reference in a new issue