diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2021-12-05 17:44:36 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-12-06 16:29:01 +0100 |
commit | 080a97a314926ae00a4153aab21a21766c58f521 (patch) | |
tree | 4b1093425ee4fce5e8fb6555134fbf46a14536f9 /src | |
parent | e3fc119baeaacbadde339e89a9b9d1507f406c15 (diff) |
Ensure we exit the ipfs node
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src')
-rw-r--r-- | src/commands/profile.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/commands/profile.rs b/src/commands/profile.rs index 98fbc08..951d4b0 100644 --- a/src/commands/profile.rs +++ b/src/commands/profile.rs @@ -18,5 +18,8 @@ async fn profile_create(matches: &ArgMatches) -> Result<()> { let profile = Profile::create(&state_dir, &name, Config::default()).await?; log::info!("Saving..."); - profile.save().await + profile.save().await?; + + log::info!("Shutting down..."); + profile.exit().await } |