1
0
mirror of synced 2025-02-19 22:53:14 +03:00

Fix wrong function handle read (#8)

This commit is contained in:
Thach Le 2016-08-19 16:47:04 +07:00 committed by Harrison Shoebridge
parent de3a5d0949
commit 500eec9f3b

View File

@ -48,7 +48,7 @@ func main() {
})
// Setup a handler to be triggered when a message is read
client.HandleDelivery(func(m messenger.Read, r *messenger.Response) {
client.HandleRead(func(m messenger.Read, r *messenger.Response) {
fmt.Println("Read at:", m.Watermark().Format(time.UnixDate))
})