mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-04 06:34:56 -04:00
Port some admin handlers to async/await (#6559)
This commit is contained in:
parent
bca30cefee
commit
3d46124ad0
4 changed files with 46 additions and 56 deletions
|
@ -104,8 +104,10 @@ def export_data_command(hs, args):
|
|||
user_id = args.user_id
|
||||
directory = args.output_directory
|
||||
|
||||
res = yield hs.get_handlers().admin_handler.export_user_data(
|
||||
user_id, FileExfiltrationWriter(user_id, directory=directory)
|
||||
res = yield defer.ensureDeferred(
|
||||
hs.get_handlers().admin_handler.export_user_data(
|
||||
user_id, FileExfiltrationWriter(user_id, directory=directory)
|
||||
)
|
||||
)
|
||||
print(res)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue