Skip to content

Commit

Permalink
dont close buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
angus-langchain committed Dec 9, 2024
1 parent 56278b6 commit 3888d15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/langsmith/_internal/_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ def compress_multipart_stream(
parts_and_contexts: MultipartPartsAndContext,
) -> Iterator[bytes]:
# Create a streaming compressor context
compressor = self.compressor.stream_writer(self.buffer)
compressor = self.compressor.stream_writer(self.buffer, closefd=False)

try:
for part_name, (filename, data, content_type, headers) in (
Expand Down Expand Up @@ -383,7 +383,7 @@ def compress_multipart_stream(
# Yield any final compressed data
yield from self._yield_and_reset_buffer()
# Close the buffer
self.buffer.close()
# self.buffer.close()

def compress_operations(
self,
Expand Down

0 comments on commit 3888d15

Please sign in to comment.