Skip to content

Commit

Permalink
Update max_workers implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
ppfeister committed Apr 10, 2024
1 parent 4cedcab commit 2d53367
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions sherlock/sherlock.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,13 @@ def main():
default=None,
help="Load data from a JSON file or an online, valid, JSON file.",
)
parser.add_argument(
"--workers",
type=int,
default=20,
dest="workers",
help="Set the maximum number of workers for Sherlock (Default: 20)"
)
parser.add_argument(
"--timeout",
action="store",
Expand Down Expand Up @@ -642,14 +649,6 @@ def main():
help="Include checking of NSFW sites from default list.",
)

parser.add_argument(
"--max-workers",
type=int,
default=20,
dest="max_workers",
help="Set the maximum number of workers for Sherlock (Default: 20)"
)

args = parser.parse_args()

# If the user presses CTRL-C, exit gracefully without throwing errors
Expand Down Expand Up @@ -771,7 +770,7 @@ def main():
unique_tor=args.unique_tor,
proxy=args.proxy,
timeout=args.timeout,
max_workers=args.max_workers
max_workers=args.workers
)

if args.output:
Expand Down

0 comments on commit 2d53367

Please sign in to comment.