Upgrade to libp2p-0.31. (#7606)

* Upgrade to libp2p-0.31.

* Address line width.

* Add generous incoming connection limit.

* Remove old noise configuration.
This commit is contained in:
Roman Borschel
2020-11-27 15:29:18 +01:00
committed by GitHub
parent 4f97481da7
commit b4ee48ee18
23 changed files with 167 additions and 127 deletions
@@ -44,6 +44,7 @@ use libp2p::{
upgrade::{OutboundUpgrade, read_one, write_one}
},
swarm::{
AddressRecord,
NegotiatedSubstream,
NetworkBehaviour,
NetworkBehaviourAction,
@@ -1463,7 +1464,7 @@ mod tests {
impl PollParameters for EmptyPollParams {
type SupportedProtocolsIter = iter::Empty<Vec<u8>>;
type ListenedAddressesIter = iter::Empty<Multiaddr>;
type ExternalAddressesIter = iter::Empty<Multiaddr>;
type ExternalAddressesIter = iter::Empty<AddressRecord>;
fn supported_protocols(&self) -> Self::SupportedProtocolsIter {
iter::empty()