Add back in broker address
This commit is contained in:
parent
7c29be288b
commit
c5dd737568
@ -5,6 +5,7 @@ package broker
|
|||||||
type Broker interface {
|
type Broker interface {
|
||||||
Init(...Option) error
|
Init(...Option) error
|
||||||
Options() Options
|
Options() Options
|
||||||
|
Address() string
|
||||||
Connect() error
|
Connect() error
|
||||||
Disconnect() error
|
Disconnect() error
|
||||||
Publish(topic string, m *Message, opts ...PublishOption) error
|
Publish(topic string, m *Message, opts ...PublishOption) error
|
||||||
|
@ -498,10 +498,9 @@ func (s *rpcServer) Start() error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
baddr := strings.Join(config.Broker.Options().Addrs, ",")
|
|
||||||
bname := config.Broker.String()
|
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
|
// use RegisterCheck func before register
|
||||||
if err = s.opts.RegisterCheck(s.opts.Context); err != nil {
|
if err = s.opts.RegisterCheck(s.opts.Context); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user