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

2077
Cargo.lock generated

File diff suppressed because it is too large Load Diff

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)

View File

@@ -154,7 +154,7 @@ mod tests {
let pk5 = PublicKeyBytes::deserialize(&hex::decode(&PK5[2..]).unwrap()).unwrap();
let pk6 = PublicKeyBytes::deserialize(&hex::decode(&PK6[2..]).unwrap()).unwrap();
let file_name = temp.into_path().join("graffiti.txt");
let file_name = temp.keep().join("graffiti.txt");
let file = File::create(&file_name).unwrap();
let mut graffiti_file = LineWriter::new(file);