Cargo Update (#8443)

Co-Authored-By: Age Manning <Age@AgeManning.com>
This commit is contained in:
Age Manning
2025-11-24 16:20:01 +11:00
committed by GitHub
parent 261322c3e3
commit 2ba8a8e6ae
4 changed files with 1022 additions and 1061 deletions

View File

@@ -41,7 +41,7 @@ pub fn build_transport(
quic_support: bool,
) -> std::io::Result<BoxedTransport> {
// mplex config
let mut mplex_config = libp2p_mplex::MplexConfig::new();
let mut mplex_config = libp2p_mplex::Config::new();
mplex_config.set_max_buffer_size(256);
mplex_config.set_max_buffer_behaviour(libp2p_mplex::MaxBufferBehaviour::Block);

View File

@@ -109,7 +109,7 @@ pub fn build_config(
config.set_ipv4_listening_address(std::net::Ipv4Addr::UNSPECIFIED, port, port, port);
config.enr_address = (Some(std::net::Ipv4Addr::LOCALHOST), None);
config.boot_nodes_enr.append(&mut boot_nodes);
config.network_dir = path.into_path();
config.network_dir = path.keep();
config.disable_peer_scoring = disable_peer_scoring;
config.inbound_rate_limiter_config = inbound_rate_limiter;
Arc::new(config)