Skip to content

Commit

Permalink
[Easy] Remove TYPES from Libp2pNetwork::from_config (#3750)
Browse files Browse the repository at this point in the history
  • Loading branch information
jparr721 authored Oct 10, 2024
1 parent b4ecb8f commit db78abb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/examples/infra/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ where
derive_libp2p_multiaddr(&bind_address).expect("failed to derive bind address");

// Create the Libp2p network
let libp2p_network = Libp2pNetwork::from_config::<TYPES>(
let libp2p_network = Libp2pNetwork::from_config(
config.clone(),
GossipConfig::default(),
bind_address,
Expand Down
2 changes: 1 addition & 1 deletion crates/hotshot/src/traits/networking/libp2p_network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ impl<K: SignatureKey + 'static> Libp2pNetwork<K> {
///
/// # Panics
/// If we are unable to calculate the replication factor
pub async fn from_config<TYPES: NodeType>(
pub async fn from_config(
mut config: NetworkConfig<K>,
gossip_config: GossipConfig,
bind_address: Multiaddr,
Expand Down

0 comments on commit db78abb

Please sign in to comment.