pub fn with_keystore(tempdir: TempDir, keystore: KeystoreSender) -> Self {
        use DbKind::*;
        let conductor = EnvWrite::test(&tempdir, Conductor, keystore.clone()).unwrap();
        let wasm = EnvWrite::test(&tempdir, Wasm, keystore).unwrap();
        let p2p = Arc::new(parking_lot::Mutex::new(HashMap::new()));
        let p2p_metrics = Arc::new(parking_lot::Mutex::new(HashMap::new()));
        Self {
            conductor,
            wasm,
            p2p,
            p2p_metrics,
            tempdir: Arc::new(tempdir),
        }
    }
/// Create all three non-cell environments at once with a custom keystore
Create all three non-cell environments at once with a custom keystore
Create all three non - cell environments at once with a custom keystore
pub fn with_keystore(tempdir: TempDir, keystore: KeystoreSender) -> Self {
        use DbKind::*;
        let conductor = EnvWrite::test(&tempdir, Conductor, keystore.clone()).unwrap();
        let wasm = EnvWrite::test(&tempdir, Wasm, keystore).unwrap();
        let p2p = Arc::new(parking_lot::Mutex::new(HashMap::new()));
        let p2p_metrics = Arc::new(parking_lot::Mutex::new(HashMap::new()));
        Self {
            conductor,
            wasm,
            p2p,
            p2p_metrics,
            tempdir: Arc::new(tempdir),
        }
    }
pub fn with_keystore ( tempdir : TempDir , keystore : KeystoreSender ) -> Self { use DbKind :: * ; let conductor = EnvWrite :: test ( & tempdir , Conductor , keystore . clone ( ) ) . unwrap ( ) ; let wasm = EnvWrite :: test ( & tempdir , Wasm , keystore ) . unwrap ( ) ; let p2p = Arc :: new ( parking_lot :: Mutex :: new ( HashMap :: new ( ) ) ) ; let p2p_metrics = Arc :: new ( parking_lot :: Mutex :: new ( HashMap :: new ( ) ) ) ; Self { conductor , wasm , p2p , p2p_metrics , tempdir : Arc :: new ( tempdir ) , } }
Create all three non-cell environments at once with a custom keystore
Create all three non - cell environments at once with a custom keystore
tempdir
TempDir
keystore
KeystoreSender
tempdir
TempDir
keystore
KeystoreSender