Skip to content

Commit

Permalink
fix publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
Asim Aslam committed Jul 29, 2018
1 parent 158350c commit 64e4c2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func main() {
service := micro.NewService()
service.Init()

p := micro.NewPublisher("example", service.Client())
p := micro.NewPublisher("topic.example", service.Client())

fmt.Println("\n--- Publisher example ---")
pub(p)
Expand Down
4 changes: 2 additions & 2 deletions server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func main() {
// Register Subscribers
if err := server.Subscribe(
server.NewSubscriber(
"topic.go.micro.srv.example",
"topic.example",
new(subscriber.Example),
),
); err != nil {
Expand All @@ -37,7 +37,7 @@ func main() {

if err := server.Subscribe(
server.NewSubscriber(
"topic.go.micro.srv.example",
"topic.example",
subscriber.Handler,
),
); err != nil {
Expand Down

0 comments on commit 64e4c2a

Please sign in to comment.