From c286eb053fa8c873d309c8351559886373ea6aab Mon Sep 17 00:00:00 2001 From: Simon Vrouwe Date: Sat, 4 Sep 2021 12:51:50 +0300 Subject: [PATCH] pyln-client: Plugin, improve background comment --- contrib/pyln-client/pyln/client/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/pyln-client/pyln/client/plugin.py b/contrib/pyln-client/pyln/client/plugin.py index 35b8c2346..efc9b2ac2 100644 --- a/contrib/pyln-client/pyln/client/plugin.py +++ b/contrib/pyln-client/pyln/client/plugin.py @@ -630,8 +630,8 @@ class Plugin(object): try: result = self._exec_func(method.func, request) if not method.background: - # Only if this is not an async (background) call do we need to - # return the result, otherwise the callee will eventually need + # Only if this is a synchronous (background=False) call do we need to + # return the result. Otherwise the callee (method) will eventually need # to call request.set_result or request.set_exception to # return a result or raise an exception. request.set_result(result)