mirror of
https://github.com/libp2p/go-libp2p-core.git
synced 2025-02-20 08:10:22 +08:00
remove network from the events
This commit is contained in:
parent
3e988ff158
commit
f4b25da8e4
@ -6,7 +6,6 @@ import "github.com/libp2p/go-libp2p-core/network"
|
|||||||
// from a peer. It contains the network interface for the connection,
|
// from a peer. It contains the network interface for the connection,
|
||||||
// the connection handle & the new state of the connection.
|
// the connection handle & the new state of the connection.
|
||||||
type EvtPeerConnectionStateChange struct {
|
type EvtPeerConnectionStateChange struct {
|
||||||
Network network.Network
|
|
||||||
Connection network.Conn
|
Connection network.Conn
|
||||||
NewState network.Connectedness
|
NewState network.Connectedness
|
||||||
}
|
}
|
||||||
@ -15,7 +14,6 @@ type EvtPeerConnectionStateChange struct {
|
|||||||
// It contains the network interface for the connection, the stream handle &
|
// It contains the network interface for the connection, the stream handle &
|
||||||
// the new state of the stream.
|
// the new state of the stream.
|
||||||
type EvtStreamStateChange struct {
|
type EvtStreamStateChange struct {
|
||||||
Network network.Network
|
|
||||||
Stream network.Stream
|
Stream network.Stream
|
||||||
NewState network.Connectedness
|
NewState network.Connectedness
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user