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

Commit 493f2b1

Browse files
changes as per raul's review
1 parent 22092ab commit 493f2b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

event/network.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ import (
55
"github.com/libp2p/go-libp2p-core/peer"
66
)
77

8-
// EvtPeerConnectednessChange should be emitted every time we form a connection with a peer or drop our last
8+
// EvtPeerConnectednessChanged should be emitted every time we form a connection with a peer or drop our last
99
// connection with the peer. Essentially, it is emitted in two cases:
1010
// a) We form a/any connection with a peer.
1111
// b) We go from having a connection/s with a peer to having no connection with the peer.
1212
// It contains the Id of the remote peer and the new connectedness state.
13-
type EvtPeerConnectednessChange struct {
14-
RemotePeerId peer.ID
13+
type EvtPeerConnectednessChanged struct {
14+
Peer peer.ID
1515
Connectedness network.Connectedness
1616
}

0 commit comments

Comments
 (0)