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:
parent
d606a4dac3
commit
edb3c9e4d2
1 changed files with 1 additions and 1 deletions
|
|
@ -164,7 +164,7 @@ class Message(Data):
|
||||||
return value
|
return value
|
||||||
|
|
||||||
def sync_get_file_content_dicts(self):
|
def sync_get_file_content_dicts(self):
|
||||||
coro = self.aget_file_content_dicts()
|
coro = self.get_file_content_dicts()
|
||||||
loop = asyncio.get_event_loop()
|
loop = asyncio.get_event_loop()
|
||||||
return loop.run_until_complete(coro)
|
return loop.run_until_complete(coro)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue