Add back in broker address

This commit is contained in:
Asim Aslam 2019-07-10 19:58:30 +01:00
parent 7c29be288b
commit c5dd737568
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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 {