Skip to content

Commit

Permalink
Fix small bug running csv if num processes == 1
Browse files Browse the repository at this point in the history
  • Loading branch information
rbiseck3 committed Jul 16, 2024
1 parent 677d5fc commit 982448f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unstructured/ingest/v2/processes/connectors/milvus.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def upload_json(self, content: UploadContent) -> None:
def run(self, contents: list[UploadContent], **kwargs: Any) -> None:
if self.upload_config.num_of_processes == 1:
for content in contents:
self.upload_csv(content=content)
self.upload(content=content)

else:
with mp.Pool(
Expand Down

0 comments on commit 982448f

Please sign in to comment.