Skip to content

Commit

Permalink
Merge pull request #419 from Seluj78/patch-1
Browse files Browse the repository at this point in the history
Fixed missing async for function on_message
  • Loading branch information
mosquito committed Oct 23, 2021
2 parents 99a90e4 + b0709cc commit 75e51e8
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -4,7 +4,7 @@
loop = asyncio.get_event_loop()


def on_message(message: IncomingMessage):
async def on_message(message: IncomingMessage):
async with message.process():
print(" [x] Received message %r" % message)
print(" Message body is: %r" % message.body)
Expand Down

0 comments on commit 75e51e8

Please sign in to comment.