Skip to content

Commit

Permalink
Fix quick start example (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
kracekumar authored Mar 11, 2022
1 parent 7eb99e0 commit 07b1aa4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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
Expand Down

0 comments on commit 07b1aa4

Please sign in to comment.