pylightning: use different decoration for init msg.

The next patch wants to decorate the methods with a compulsory
'usage' option, which doesn't make sense for init.  So I wanted
to change the init to its own decoration.

Made-to-work-by: @cdecker
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2019-02-04 21:25:42 +10:30
parent 5770e0c700
commit 0c89fc5d70
2 changed files with 16 additions and 15 deletions

View File

@@ -19,7 +19,7 @@ def hello(plugin, name="world"):
return s
@plugin.method("init")
@plugin.init()
def init(options, configuration, plugin):
plugin.log("Plugin helloworld.py initialized")