Skip to content

Commit

Permalink
Merge pull request #294 from nikitabuyevich/patch-1
Browse files Browse the repository at this point in the history
fix(doc): wrong variable for producer
  • Loading branch information
ploxiln authored Apr 9, 2020
2 parents 6350dfa + f8d1876 commit a829cf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Producing messages can be done by creating an instance of a Producer.
// Synchronously publish a single message to the specified topic.
// Messages can also be sent asynchronously and/or in batches.
err = p.Publish(topicName, messageBody)
err = producer.Publish(topicName, messageBody)
if err != nil {
log.Fatal(err)
}
Expand Down

0 comments on commit a829cf0

Please sign in to comment.