Skip to content

Commit

Permalink
QA
Browse files Browse the repository at this point in the history
  • Loading branch information
ajinabraham committed Aug 30, 2023
1 parent 424b68c commit af2f1c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions libsast/core_matcher/choice_matcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ def scan(self, paths: list) -> dict:
if rule['type'] != 'code' and self.alternative_path:
# Scan only alternative path
scan_paths = [Path(self.alternative_path)]
choice_args.append([scan_paths, rule])
choice_args.append((scan_paths, rule))

# Multiprocess Pool
with Pool() as pool:
results = pool.map(
results = pool.starmap(
self.choice_matcher,
choice_args,
chunksize=1)
chunksize=10)
self.add_finding(results)
return self.findings

Expand Down
2 changes: 1 addition & 1 deletion libsast/core_matcher/pattern_matcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def scan(self, paths: list) -> dict:
results = pool.map(
self.pattern_matcher,
files_to_scan,
chunksize=1)
chunksize=10)
self.add_finding(results)
return self.findings

Expand Down

0 comments on commit af2f1c9

Please sign in to comment.