From b80654bf7e81c13b4434659c238ca8200e78702d Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Thu, 3 Oct 2019 16:22:26 +0100 Subject: [PATCH] Add broker service to config/cmd --- config/cmd/cmd.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/config/cmd/cmd.go b/config/cmd/cmd.go index cfb8b313..6cb6835b 100644 --- a/config/cmd/cmd.go +++ b/config/cmd/cmd.go @@ -23,6 +23,7 @@ import ( "github.com/micro/go-micro/broker/http" "github.com/micro/go-micro/broker/memory" "github.com/micro/go-micro/broker/nats" + brokerSrv "github.com/micro/go-micro/broker/service" // registries "github.com/micro/go-micro/registry" @@ -179,9 +180,11 @@ var ( } DefaultBrokers = map[string]func(...broker.Option) broker.Broker{ - "http": http.NewBroker, - "memory": memory.NewBroker, - "nats": nats.NewBroker, + "go.micro.broker": brokerSrv.NewBroker, + "service": brokerSrv.NewBroker, + "http": http.NewBroker, + "memory": memory.NewBroker, + "nats": nats.NewBroker, } DefaultClients = map[string]func(...client.Option) client.Client{