Skip to content

Commit

Permalink
Update producer_simple_demo.go
Browse files Browse the repository at this point in the history
  • Loading branch information
xuxiaoahang2018 authored Jun 27, 2019
1 parent bbf778c commit 32935d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/producer/producer_simple_demo.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func main() {
// GenerateLog is producer's function for generating SLS format logs
// GenerateLog has low performance, and native Log interface is the best choice for high performance.
log := producer.GenerateLog(uint32(time.Now().Unix()), map[string]string{"content": "test", "content2": fmt.Sprintf("%v", i)})
err := producerInstance.SendLog("project", "logstrore", "127.0.0.1", "topic", log)
err := producerInstance.SendLog("project", "logstrore", "topic", "127.0.0.1", log)
if err != nil {
fmt.Println(err)
}
Expand Down

0 comments on commit 32935d0

Please sign in to comment.