mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-09 09:04:25 +01:00
pyln-client: Plugin, improve background comment
This commit is contained in:
committed by
Rusty Russell
parent
ad22535d34
commit
c286eb053f
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user