From 1af505c5c3d5b3924fd1867503bc6d743642b022 Mon Sep 17 00:00:00 2001 From: cloudhead Date: Wed, 31 Jan 2024 13:16:09 +0100 Subject: [PATCH] Create databases on profile init Ensures that the databases exist for commands like `rad ls`, even before the node is started for the first time. --- radicle/src/profile.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/radicle/src/profile.rs b/radicle/src/profile.rs index 623a388c..51c1c13d 100644 --- a/radicle/src/profile.rs +++ b/radicle/src/profile.rs @@ -216,6 +216,9 @@ impl Profile { key: public_key, }, )?; + // Create DBs. + home.policies_mut()?; + home.database_mut()?; transport::local::register(storage.clone());