fix: change sync_get_file_content_dicts to use get_file_content_dicts (#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.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-08-08 19:23:02 -03:00 committed by GitHub
commit edb3c9e4d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -164,7 +164,7 @@ class Message(Data):
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)