radicle: Move some functions to Home type

Certain functions in `Profile` did not need to be in there and could be
moved in the more basic `Home` type.
This commit is contained in:
cloudhead
2023-11-03 17:08:18 +01:00
parent d15534df97
commit a70664368e
5 changed files with 72 additions and 20 deletions
+3 -3
View File
@@ -329,9 +329,9 @@ impl Node<MockSigner> {
let home = Home::new(home).unwrap();
let signer = MockSigner::default();
let storage = Storage::open(home.storage()).unwrap();
let addresses = Book::memory().unwrap();
let tracking = tracking::Config::<tracking::Write>::memory().unwrap();
let routing = routing::Table::memory().unwrap();
let addresses = home.addresses_mut().unwrap();
let tracking = home.tracking_mut().unwrap();
let routing = home.routing_mut().unwrap();
Self {
id: *signer.public_key(),