From 834520dc2932335f086180bd7672d5f28d185a3e Mon Sep 17 00:00:00 2001 From: SHAcollision Date: Sat, 22 Feb 2025 09:52:38 -0400 Subject: [PATCH] fix: improve start up times in some environments --- pubky-testnet/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pubky-testnet/src/lib.rs b/pubky-testnet/src/lib.rs index 7a41b5e..3844241 100644 --- a/pubky-testnet/src/lib.rs +++ b/pubky-testnet/src/lib.rs @@ -23,7 +23,7 @@ pub struct Testnet { impl Testnet { /// Run a new testnet. pub async fn run() -> Result { - let dht = mainline::Testnet::new(10)?; + let dht = mainline::Testnet::new(3)?; let mut testnet = Self { dht, @@ -42,7 +42,7 @@ impl Testnet { /// 2. A Homeserver with address is hardcoded to `8pinxxgqs41n4aididenw5apqp1urfmzdztr8jt4abrkdn435ewo` /// 4. An HTTP relay running on port [15412](pubky_common::constants::testnet_ports::HTTP_RELAY) pub async fn run_with_hardcoded_configurations() -> Result { - let dht = mainline::Testnet::new(10)?; + let dht = mainline::Testnet::new(3)?; dht.leak();