remove network from the events

This commit is contained in:
Aarsh Shah 2020-02-28 16:18:42 +05:30
parent 3e988ff158
commit f4b25da8e4

View File

@ -6,7 +6,6 @@ import "github.com/libp2p/go-libp2p-core/network"
// from a peer. It contains the network interface for the connection,
// the connection handle & the new state of the connection.
type EvtPeerConnectionStateChange struct {
Network network.Network
Connection network.Conn
NewState network.Connectedness
}
@ -15,7 +14,6 @@ type EvtPeerConnectionStateChange struct {
// It contains the network interface for the connection, the stream handle &
// the new state of the stream.
type EvtStreamStateChange struct {
Network network.Network
Stream network.Stream
NewState network.Connectedness
}