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

Commit 692dae5

Browse files
authored
Merge pull request #45 from libp2p/fix/connmgr-notifee
subscribe connmgr to net notifications
2 parents a35db1d + a601e86 commit 692dae5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

blank.go

+3
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ func NewBlankHost(n network.Network, options ...Option) *BlankHost {
6363
eventbus: eventbus.NewBus(),
6464
}
6565

66+
// subscribe the connection manager to network notifications (has no effect with NullConnMgr)
67+
n.Notify(bh.cmgr.Notifee())
68+
6669
var err error
6770
if bh.emitters.evtLocalProtocolsUpdated, err = bh.eventbus.Emitter(&event.EvtLocalProtocolsUpdated{}); err != nil {
6871
return nil

0 commit comments

Comments
 (0)