Fix wrong function handle read (#8)
This commit is contained in:
parent
de3a5d0949
commit
500eec9f3b
@ -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))
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user