From 493f2b140f27339cb83f26e91b772ba3aa23b6ee Mon Sep 17 00:00:00 2001 From: Aarsh Shah Date: Fri, 6 Mar 2020 16:08:03 +0530 Subject: [PATCH] changes as per raul's review --- event/network.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/event/network.go b/event/network.go index 8786fcf..05b435d 100644 --- a/event/network.go +++ b/event/network.go @@ -5,12 +5,12 @@ import ( "github.com/libp2p/go-libp2p-core/peer" ) -// EvtPeerConnectednessChange should be emitted every time we form a connection with a peer or drop our last +// EvtPeerConnectednessChanged should be emitted every time we form a connection with a peer or drop our last // connection with the peer. Essentially, it is emitted in two cases: // a) We form a/any connection with a peer. // b) We go from having a connection/s with a peer to having no connection with the peer. // It contains the Id of the remote peer and the new connectedness state. -type EvtPeerConnectednessChange struct { - RemotePeerId peer.ID +type EvtPeerConnectednessChanged struct { + Peer peer.ID Connectedness network.Connectedness }