Shouldn't watcher callback be passed the notification data
Hi, I've implemented my own watcher for sqlx & postgres and it works fine. One thing that I noticed is that the callback function signature doesn't include any way to pass the notification payload. It would be great if this was passed to the callback. The go version passes the payload
@byrnedo what payload do you mean?
@hsluoyz oh sorry, I meant great if the function signature could accept a String payload like the go version does.
It's up to the watcher implementation to pass it in if it wants/can.
:tada: This issue has been resolved in version 2.13.0 :tada:
The release is available on:
-
v2.13.0 - GitHub release
Your semantic-release bot :package::rocket: