This is an automated email from the ASF dual-hosted git repository.
rxl pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-client-go.git
The following commit(s) were added to refs/heads/master by this push:
new 5603a6a Fix: producer code example (#166)
5603a6a is described below
commit 5603a6a836278f6e9d9545d68feaceb9bc0fddec
Author: Mickaƫl FORTUNATO <[email protected]>
AuthorDate: Wed Jan 8 03:12:00 2020 +0100
Fix: producer code example (#166)
Fixing a typo in a readme.md following changes done in #141
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index f7a2953..acc96f1 100644
--- a/README.md
+++ b/README.md
@@ -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"),
})