Skip to content

Commit ecaf575

Browse files
authored
chore: fix readme examples (#465)
1 parent 025ef3b commit ecaf575

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,14 @@ from fluvio import Fluvio
3030
fluvio = Fluvio.connect()
3131
producer = fluvio.topic_producer('my-topic')
3232
producer.send_string("FOOBAR")
33+
producer.flush()
3334
```
3435

3536
## Consumer
3637
```python
3738
from fluvio import (Fluvio, Offset)
3839
fluvio = Fluvio.connect()
39-
consumer = fluvio.partition_consumer('my-topic-while', 0)
40+
consumer = fluvio.partition_consumer('my-topic', 0)
4041
stream = consumer.stream(Offset.beginning())
4142

4243
for i in stream:

0 commit comments

Comments
 (0)