Skip to content

Commit

Permalink
fix: change sync_get_file_content_dicts to use get_file_content_dicts (
Browse files Browse the repository at this point in the history
…#3250)

feat: refactor sync_get_file_content_dicts to use get_file_content_dicts

Refactor the `sync_get_file_content_dicts` method in the `Message` class to use the `get_file_content_dicts` method instead. This change improves the code by using a more descriptive and accurate method name.
  • Loading branch information
ogabrielluiz authored Aug 8, 2024
1 parent d606a4d commit edb3c9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/base/langflow/schema/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def serialize_text(self, value):
return value

def sync_get_file_content_dicts(self):
coro = self.aget_file_content_dicts()
coro = self.get_file_content_dicts()
loop = asyncio.get_event_loop()
return loop.run_until_complete(coro)

Expand Down

0 comments on commit edb3c9e

Please sign in to comment.