1
0
mirror of https://github.com/libp2p/go-libp2p-core.git synced 2025-04-28 17:10:14 +08:00

remove TODO for PeerConnected and PeerDisconnected from Notifiee

This is now done via the event bus.
This commit is contained in:
Marten Seemann 2022-05-20 18:41:12 +02:00
parent 02cbdcc419
commit 48fb035d2a

View File

@ -13,10 +13,6 @@ type Notifiee interface {
Disconnected(Network, Conn) // called when a connection closed
OpenedStream(Network, Stream) // called when a stream opened
ClosedStream(Network, Stream) // called when a stream closed
// TODO
// PeerConnected(Network, peer.ID) // called when a peer connected
// PeerDisconnected(Network, peer.ID) // called when a peer disconnected
}
// NotifyBundle implements Notifiee by calling any of the functions set on it,