From 07b1aa43b3e8428774707a085f25014db58f8cba Mon Sep 17 00:00:00 2001 From: Kracekumar Date: Fri, 11 Mar 2022 06:38:02 +0530 Subject: [PATCH] Fix quick start example (#4) --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 09a8b05..ebb0885 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,8 @@ pip install git+https://github.com/Airbase/eventbusk.git ## Quick Start ```python -from eventbus import Event, EventBus +from eventbusk import Event, EventBus +from dataclasses import dataclass # create an app instance of the bus bus = EventBus(broker="kafka://localhost:9092") @@ -35,7 +36,7 @@ def process_a(event): # Publish an event to the bus foo = Foo(foo=1) -bus.send(f) +bus.send(foo) ``` ## Examples