logging in LmdbServerStorage.open

Niko PLP 1 year ago
parent 57f1f5f808
commit 5cf6af6458
  1. 4
      p2p-broker/src/server_storage.rs

@ -42,6 +42,7 @@ impl LmdbServerStorage {
let mut wallet_path = path.clone();
wallet_path.push("wallet");
std::fs::create_dir_all(wallet_path.clone()).unwrap();
log_debug!("opening wallet DB");
//TODO redo the whole key passing mechanism in RKV so it uses zeroize all the way
let wallet_storage = LmdbKCVStore::open(&wallet_path, master_key.slice().clone())?;
let wallet = Wallet::open(&wallet_storage);
@ -79,12 +80,13 @@ impl LmdbServerStorage {
}
accounts_key = wallet.get_or_create_accounts_key()?;
}
log_debug!("opening accounts DB");
std::fs::create_dir_all(accounts_path.clone()).unwrap();
//TODO redo the whole key passing mechanism in RKV so it uses zeroize all the way
let accounts_storage = LmdbKCVStore::open(&accounts_path, accounts_key.slice().clone())?;
// create/open the PEERS storage
log_debug!("opening peers DB");
let peers_key = wallet.get_or_create_peers_key()?;
let mut peers_path = path.clone();
peers_path.push("peers");

Loading…
Cancel
Save