From 884d837ab52df225ef94d8fcf7b5a40bcf51eecf Mon Sep 17 00:00:00 2001 From: Gusto Date: Mon, 16 Oct 2023 16:21:18 +0300 Subject: [PATCH] History length typo --- nomos-libp2p/src/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nomos-libp2p/src/config.rs b/nomos-libp2p/src/config.rs index 55b60b8c..9997d20f 100644 --- a/nomos-libp2p/src/config.rs +++ b/nomos-libp2p/src/config.rs @@ -34,7 +34,7 @@ impl Default for SwarmConfig { #[serde(remote = "gossipsub::Config")] struct GossipsubConfigDef { #[serde(getter = "gossipsub::Config::history_length")] - history_legnth: usize, + history_length: usize, #[serde(getter = "gossipsub::Config::history_gossip")] history_gossip: usize, #[serde(getter = "gossipsub::Config::mesh_n")] @@ -103,7 +103,7 @@ impl From for gossipsub::Config { fn from(def: GossipsubConfigDef) -> gossipsub::Config { let mut builder = gossipsub::ConfigBuilder::default(); let mut builder = builder - .history_length(def.history_legnth) + .history_length(def.history_length) .history_gossip(def.history_gossip) .mesh_n(def.mesh_n) .mesh_n_low(def.mesh_n_low)