Skip to content

Commit

Permalink
Add package name to msg
Browse files Browse the repository at this point in the history
  • Loading branch information
variadico authored Aug 20, 2019
1 parent 285cb58 commit 51cdfb7
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 @@ -69,7 +69,7 @@ sub.Drain()
msg, err := nc.Request("help", []byte("help me"), 10*time.Millisecond)

// Replies
nc.Subscribe("help", func(m *Msg) {
nc.Subscribe("help", func(m *nats.Msg) {
nc.Publish(m.Reply, []byte("I can help!"))
})

Expand Down

0 comments on commit 51cdfb7

Please sign in to comment.