Skip to content

Commit

Permalink
Update var name
Browse files Browse the repository at this point in the history
Signed-off-by: John Mazanec <[email protected]>
  • Loading branch information
jmazanec15 committed Jan 27, 2022
1 parent bca569d commit 2dd6f05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benchmarks/perf-tool/okpt/test/steps/steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,11 +288,11 @@ def action(doc_id):
return {'index': {'_index': self.index_name, '_id': doc_id}}

index_responses = []
for doc_id_ in range(0, self.doc_count, self.bulk_size):
for i in range(0, self.doc_count, self.bulk_size):
partition = self.dataset.read(self.bulk_size)
if partition is None:
break
body = bulk_transform(partition, self.field_name, action, doc_id_)
body = bulk_transform(partition, self.field_name, action, i)
result = bulk_index(self.opensearch, self.index_name, body)
index_responses.append(result)

Expand Down

0 comments on commit 2dd6f05

Please sign in to comment.