mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
pylightning: Split @method and @async_method decorators
Suggested-by: Rusty Russell <@rustyrussell> Suggested-by: Conor Scott <@conscott> Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
committed by
Rusty Russell
parent
d9c3f5ec4b
commit
7f11b4854e
@@ -16,7 +16,7 @@ def init(configuration, options, plugin):
|
||||
plugin.requests = []
|
||||
|
||||
|
||||
@plugin.method('asyncqueue', sync=False)
|
||||
@plugin.async_method('asyncqueue')
|
||||
def async_queue(request, plugin):
|
||||
plugin.requests.append(request)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user