mirror of
https://github.com/aljazceru/pubky-core.git
synced 2026-01-29 02:44:22 +01:00
fix: improve start up times in some environments (#76)
This commit is contained in:
@@ -23,7 +23,7 @@ pub struct Testnet {
|
||||
impl Testnet {
|
||||
/// Run a new testnet.
|
||||
pub async fn run() -> Result<Self> {
|
||||
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<Self> {
|
||||
let dht = mainline::Testnet::new(10)?;
|
||||
let dht = mainline::Testnet::new(3)?;
|
||||
|
||||
dht.leak();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user