Skip to content

Commit

Permalink
update worker count checker
Browse files Browse the repository at this point in the history
  • Loading branch information
ignisco committed Jul 19, 2024
1 parent 27a0757 commit a122cb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checker/src/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ async def exploit_private(task: ExploitCheckerTaskMessage, searcher: FlagSearche
matching_identities = exploit2.get_matching_identites(potential_identities, private_file)

# Use ThreadPoolExecutor to parallelize the process_identity function
with ThreadPoolExecutor() as executor:
with ThreadPoolExecutor(max_workers=20) as executor:
responses = executor.map(lambda identity: exploit2.process_identity(identity, private_file, private_dir, task.address, SERVICE_PORT), matching_identities)

# Iterate over the responses to find the flag
Expand Down

0 comments on commit a122cb8

Please sign in to comment.