func (nn *netNotifiee) Disconnected(n inet.Network, v inet.Conn) { dht := nn.DHT() select { case <-dht.Process().Closing(): return default: } dht.routingTable.Remove(v.RemotePeer()) }
func (nn *netNotifiee) Connected(n inet.Network, v inet.Conn) { dht := nn.DHT() select { case <-dht.Process().Closing(): return default: } dht.Update(dht.Context(), v.RemotePeer()) }
func (nn *netNotifiee) Disconnected(n inet.Network, v inet.Conn) { nn.impl().receiver.PeerDisconnected(v.RemotePeer()) }