Skip to content

Commit

Permalink
Fix typo in docs, s/add/xadd
Browse files Browse the repository at this point in the history
Replaces #175
  • Loading branch information
coleifer committed Jun 29, 2022
1 parent 6336cb2 commit 2bd8086
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/streams.rst
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ RDB and replicated.
# created, so we have to add an empty message.
stream_keys = ['stream-a', 'stream-b', 'stream-c']
for stream in stream_keys:
db.add(stream, {'data': ''})
db.xadd(stream, {'data': ''})
# Create a consumer-group for streams a, b, and c. We will mark all
# messages as having been processed, so only messages added after the
Expand Down

0 comments on commit 2bd8086

Please sign in to comment.