Skip to content

Commit

Permalink
Read the ack message for each batch
Browse files Browse the repository at this point in the history
  • Loading branch information
DarthMax committed Oct 23, 2024
1 parent dfd3828 commit 2340296
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/neo4j_arrow/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,9 @@ def _write_batches(
for batch in batches:
mapped_batch = fn(batch)
self._write_batch_with_retries(mapped_batch, writer)
metadata_reader.read() # read the ack message
n_rows += batch.num_rows
n_bytes += batch.get_total_buffer_size()
metadata_reader.read()
except Exception as e:
raise error.interpret(e)
return n_rows, n_bytes
Expand Down

0 comments on commit 2340296

Please sign in to comment.