Skip to content

Commit 7db1d38

Browse files
benjefferymergify[bot]
authored andcommitted
Don't double count progress
1 parent f15abee commit 7db1d38

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tsinfer/inference.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -1838,11 +1838,7 @@ def match_ancestors(self):
18381838
)
18391839
else:
18401840
batch_results = self.match_locally(batch_ancestor_ids)
1841-
batch_results_list = []
1842-
for result in batch_results:
1843-
batch_results_list.append(result)
1844-
self.match_progress.update()
1845-
batch_results = batch_results_list
1841+
batch_results = list(batch_results)
18461842
cache.put(key, batch_results)
18471843
else:
18481844
logger.info(

0 commit comments

Comments
 (0)