mirror of
https://github.com/go-micro/go-micro.git
synced 2024-11-24 08:02:32 +02:00
Add back in broker address
This commit is contained in:
parent
7c29be288b
commit
c5dd737568
@ -5,6 +5,7 @@ package broker
|
||||
type Broker interface {
|
||||
Init(...Option) error
|
||||
Options() Options
|
||||
Address() string
|
||||
Connect() error
|
||||
Disconnect() error
|
||||
Publish(topic string, m *Message, opts ...PublishOption) error
|
||||
|
@ -498,10 +498,9 @@ func (s *rpcServer) Start() error {
|
||||
return err
|
||||
}
|
||||
|
||||
baddr := strings.Join(config.Broker.Options().Addrs, ",")
|
||||
bname := config.Broker.String()
|
||||
|
||||
log.Logf("Broker [%s] Connected to %s", bname, baddr)
|
||||
log.Logf("Broker [%s] Connected to %s", bname, config.Broker.Address())
|
||||
|
||||
// use RegisterCheck func before register
|
||||
if err = s.opts.RegisterCheck(s.opts.Context); err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user