Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Signed-off-by: Maciej Mensfeld <[email protected]>
  • Loading branch information
mensfeld authored Oct 17, 2023
1 parent 2b37c6e commit e329d99
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,21 @@ end


```ruby
# And use it
# sync producing
producer.produce_sync(topic: 'my-topic', payload: 'my message')

# or for async
producer.produce_async(topic: 'my-topic', payload: 'my message')

# or in batches
# or in sync batches
producer.produce_many_sync(
[
{ topic: 'my-topic', payload: 'my message'},
{ topic: 'my-topic', payload: 'my message'}
]
)

# both sync and async
# and async batches
producer.produce_many_async(
[
{ topic: 'my-topic', payload: 'my message'},
Expand Down

0 comments on commit e329d99

Please sign in to comment.