Skip to content

Commit

Permalink
docs: update FastStream example a bit (#689)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lancetnik authored Dec 17, 2024
1 parent 2127540 commit 5f4c632
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/integrations/event-streams/faststream.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ app = FastStream(broker)


@broker.subscriber("test-channel")
@broker.publisher("another-channel")
async def handle():
await broker.publish("Hi!", channel="another-channel")
return "Hi!"


@broker.subscriber("another-channel")
Expand Down

0 comments on commit 5f4c632

Please sign in to comment.