mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 19:17:58 +00:00
libp2p-next (#5278)
* Adapt to rust-libp2p#1440. * Further adapt to libp2p/master. * Update to libp2p-0.17 * Finishing touches. * Remove stray TODO. * Incorporate review feedback. * Remove unused import.
This commit is contained in:
@@ -255,3 +255,12 @@ pub use libp2p::{Multiaddr, PeerId};
|
||||
pub use libp2p::multiaddr;
|
||||
|
||||
pub use sc_peerset::ReputationChange;
|
||||
|
||||
/// The maximum allowed number of established connections per peer.
|
||||
///
|
||||
/// Typically, and by design of the network behaviours in this crate,
|
||||
/// there is a single established connection per peer. However, to
|
||||
/// avoid unnecessary and nondeterministic connection closure in
|
||||
/// case of (possibly repeated) simultaneous dialing attempts between
|
||||
/// two peers, the per-peer connection limit is not set to 1 but 2.
|
||||
const MAX_CONNECTIONS_PER_PEER: usize = 2;
|
||||
|
||||
Reference in New Issue
Block a user