Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

subscribe connmgr to net notifications #45

Merged
merged 1 commit into from May 11, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions blank.go
Expand Up @@ -63,6 +63,9 @@ func NewBlankHost(n network.Network, options ...Option) *BlankHost {
eventbus: eventbus.NewBus(),
}

// subscribe the connection manager to network notifications (has no effect with NullConnMgr)
n.Notify(bh.cmgr.Notifee())

var err error
if bh.emitters.evtLocalProtocolsUpdated, err = bh.eventbus.Emitter(&event.EvtLocalProtocolsUpdated{}); err != nil {
return nil
Expand Down