Skip to content

Commit

Permalink
pyln-client: Plugin, improve background comment
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonVrouwe committed Feb 23, 2022
1 parent 0856c00 commit a0c0499
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/pyln-client/pyln/client/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,8 +630,8 @@ def _dispatch_request(self, request: Request) -> None:
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)
Expand Down

0 comments on commit a0c0499

Please sign in to comment.