commit 211c726637f744b201a2871a61090dfaad6decc1 Author: Illia Volochii illia.volochii@gmail.com Date: Tue Apr 21 22:59:48 2020 +0300
Make `Controller.remove_ephemeral_hidden_service` asynchronous --- stem/control.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/stem/control.py b/stem/control.py index dce1584b..bcf34f6c 100644 --- a/stem/control.py +++ b/stem/control.py @@ -3016,7 +3016,7 @@ class Controller(BaseController):
return response
- def remove_ephemeral_hidden_service(self, service_id: str) -> bool: + async def remove_ephemeral_hidden_service(self, service_id: str) -> bool: """ Discontinues a given hidden service that was created with :func:`~stem.control.Controller.create_ephemeral_hidden_service`. @@ -3031,7 +3031,7 @@ class Controller(BaseController): :raises: :class:`stem.ControllerError` if the call fails """
- response = stem.response._convert_to_single_line(self.msg('DEL_ONION %s' % service_id)) + response = stem.response._convert_to_single_line(await self.msg('DEL_ONION %s' % service_id))
if response.is_ok(): return True