Skip to content

Commit

Permalink
Fix: producer code example (apache#166)
Browse files Browse the repository at this point in the history
Fixing a typo in a readme.md following changes done in apache#141
  • Loading branch information
Morsicus authored and wolfstudy committed Jan 8, 2020
1 parent 86c3e80 commit 5603a6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ producer, err := client.CreateProducer(pulsar.ProducerOptions{
Topic: "my-topic",
})

err = producer.Send(context.Background(), &pulsar.ProducerMessage{
_, err = producer.Send(context.Background(), &pulsar.ProducerMessage{
Payload: []byte("hello"),
})

Expand Down

0 comments on commit 5603a6a

Please sign in to comment.