From 9bb0ca2f0d7ef428d17ee8bdec89d0bb17f99dca Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Sun, 13 Oct 2019 21:59:06 -0400 Subject: [PATCH] async def --- lbry/lbry/extras/daemon/Daemon.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lbry/lbry/extras/daemon/Daemon.py b/lbry/lbry/extras/daemon/Daemon.py index f25e4d1fa..117ad96e3 100644 --- a/lbry/lbry/extras/daemon/Daemon.py +++ b/lbry/lbry/extras/daemon/Daemon.py @@ -3375,7 +3375,7 @@ class Daemon(metaclass=JSONRPCServerType): return maybe_paginate(utxos, utxo_count, page, page_size) @requires(WALLET_COMPONENT) - def jsonrpc_utxo_release(self, account_id=None, wallet_id=None): + async def jsonrpc_utxo_release(self, account_id=None, wallet_id=None): """ When spending a UTXO it is locally locked to prevent double spends; occasionally this can result in a UTXO being locked which ultimately @@ -3395,10 +3395,10 @@ class Daemon(metaclass=JSONRPCServerType): """ wallet = self.wallet_manager.get_wallet_or_default(wallet_id) if account_id is not None: - wallet.get_account_or_error(account_id).release_all_outputs() + await wallet.get_account_or_error(account_id).release_all_outputs() else: for account in wallet.accounts: - account.release_all_outputs() + await account.release_all_outputs() BLOB_DOC = """ Blob management.