Skip to content

Commit

Permalink
Don't double count progress
Browse files Browse the repository at this point in the history
  • Loading branch information
benjeffery authored and mergify[bot] committed Dec 20, 2023
1 parent f15abee commit 7db1d38
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tsinfer/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -1838,11 +1838,7 @@ def match_ancestors(self):
)
else:
batch_results = self.match_locally(batch_ancestor_ids)
batch_results_list = []
for result in batch_results:
batch_results_list.append(result)
self.match_progress.update()
batch_results = batch_results_list
batch_results = list(batch_results)
cache.put(key, batch_results)
else:
logger.info(
Expand Down

0 comments on commit 7db1d38

Please sign in to comment.