From e629456ed393b42753bcdc1ef41bb05acaa98e0e Mon Sep 17 00:00:00 2001 From: luoruofeng Date: Wed, 28 Dec 2022 16:24:59 +0800 Subject: [PATCH] Update main.go NewEvent funcation is right function in latest version. --- client/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/main.go b/client/main.go index cf3d862..9954614 100644 --- a/client/main.go +++ b/client/main.go @@ -120,7 +120,7 @@ func main() { service := micro.NewService() service.Init() - p := micro.NewPublisher("topic.example", service.Client()) + p := micro.NewEvent("topic.example", service.Client()) fmt.Println("\n--- Publisher example ---") pub(p)