Skip to content

Commit

Permalink
fixup! pytest: Add a test for the event subscription and notification
Browse files Browse the repository at this point in the history
  • Loading branch information
cdecker committed Dec 22, 2018
1 parent e449ba7 commit 91c9ce7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/plugins/helloworld.py
Expand Up @@ -25,12 +25,12 @@ def init(options, configuration, plugin):


@plugin.subscribe("connect")
def on_connect(id, address, plugin):
def on_connect(peer_id, address, plugin):
plugin.log("Received connect event for peer {}".format(id))


@plugin.subscribe("disconnect")
def on_disconnect(id, plugin):
def on_disconnect(peer_id, plugin):
plugin.log("Received disconnect event for peer {}".format(id))


Expand Down

0 comments on commit 91c9ce7

Please sign in to comment.