go-micro/examples

micro.NewPublisher("example", service.Client()) report error

cartersz opened this issue · 2 comments

pub.go file cannot build, see the following picture. I use 'go-micro.dev/v4 v4.8.1' and go version is 'go1.18.1 darwin/amd64'
image

image

Replace this function by micro.NewEvent() will resolve this issue.