forked from LBRYCommunity/lbry-sdk
fix typo
This commit is contained in:
parent
8c2d381aee
commit
20b9e4d17e
1 changed files with 2 additions and 2 deletions
|
@ -1348,7 +1348,7 @@ class LBRYumWallet(Wallet):
|
||||||
# lbryum commands should be run this way , unless if the command
|
# lbryum commands should be run this way , unless if the command
|
||||||
# only makes a lbrum server query, use _run_cmd_as_defer_to_thread()
|
# only makes a lbrum server query, use _run_cmd_as_defer_to_thread()
|
||||||
def _run_cmd_as_defer_succeed(self, command_name, *args, **kwargs):
|
def _run_cmd_as_defer_succeed(self, command_name, *args, **kwargs):
|
||||||
cmd_runner = self._get_cmd_runner()
|
cmd_runner = self.get_cmd_runner()
|
||||||
cmd = Commands.known_commands[command_name]
|
cmd = Commands.known_commands[command_name]
|
||||||
func = getattr(cmd_runner, cmd.name)
|
func = getattr(cmd_runner, cmd.name)
|
||||||
return defer.succeed(func(*args, **kwargs))
|
return defer.succeed(func(*args, **kwargs))
|
||||||
|
@ -1358,7 +1358,7 @@ class LBRYumWallet(Wallet):
|
||||||
# TODO: keep track of running threads and cancel them on `stop`
|
# TODO: keep track of running threads and cancel them on `stop`
|
||||||
# otherwise the application will hang, waiting for threads to complete
|
# otherwise the application will hang, waiting for threads to complete
|
||||||
def _run_cmd_as_defer_to_thread(self, command_name, *args, **kwargs):
|
def _run_cmd_as_defer_to_thread(self, command_name, *args, **kwargs):
|
||||||
cmd_runner = self._get_cmd_runner()
|
cmd_runner = self.get_cmd_runner()
|
||||||
cmd = Commands.known_commands[command_name]
|
cmd = Commands.known_commands[command_name]
|
||||||
func = getattr(cmd_runner, cmd.name)
|
func = getattr(cmd_runner, cmd.name)
|
||||||
return threads.deferToThread(func, *args, **kwargs)
|
return threads.deferToThread(func, *args, **kwargs)
|
||||||
|
|
Loading…
Reference in a new issue