Skip to content

Commit

Permalink
Fixed name of the subscriber component in the pubsub example
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Jun 7, 2017
1 parent 137d040 commit 88c278f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/pubsub/subscriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def subscriber(ctx: EventContext, message: str):
logger.info('Received message from %s: %s', ctx.topic, message)


class PublisherComponent(ContainerComponent):
class SubscriberComponent(ContainerComponent):
async def start(self, ctx: Context):
self.add_component('wamp')
await super().start(ctx)
Expand All @@ -27,4 +27,4 @@ async def start(self, ctx: Context):
print('Usage: {} <topic>'.format(sys.argv[0]), file=sys.stderr)
sys.exit(1)

run_application(PublisherComponent(), logging=logging.INFO)
run_application(SubscriberComponent(), logging=logging.INFO)

0 comments on commit 88c278f

Please sign in to comment.