Skip to content

Commit 171ef57

Browse files
authored
Go version required should be 1.13, example produce log print error (#649)
1 parent c3922b8 commit 171ef57

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ CGo based library.
3636

3737
## Requirements
3838

39-
- Go 1.11+
39+
- Go 1.13+
4040

4141
## Status
4242

@@ -72,8 +72,9 @@ defer producer.Close()
7272

7373
if err != nil {
7474
fmt.Println("Failed to publish message", err)
75+
} else {
76+
fmt.Println("Published message")
7577
}
76-
fmt.Println("Published message")
7778
```
7879

7980
Create a Consumer:

0 commit comments

Comments
 (0)