Skip to content

Commit 5631b2a

Browse files
authored
Merge pull request #184 from poissoncorp/RDBC-706
RDBC-706 Convert bytearray objects to bytes just before they're passed to the requests lib in the bulk insert operation
2 parents b1a67ad + b24f531 commit 5631b2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ravendb/documents/bulk_insert_operation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def __init__(self):
3636
self.output_stream_mock = Future()
3737

3838
def enqueue_buffer_for_flush(self, buffer: bytearray):
39-
self._buffers_to_flush_queue.put(buffer)
39+
self._buffers_to_flush_queue.put(bytes(buffer))
4040

4141
# todo: blocking semaphore acquired and released on enter and exit from bulk insert operation context manager
4242
def send_data(self):

0 commit comments

Comments
 (0)