Skip to content

Commit 9f0508d

Browse files
committed
refactor(rust): put back some node clean-up
1 parent f5f7ee7 commit 9f0508d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

implementations/rust/ockam/ockam_api/src/nodes/service/in_memory_node.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ impl Drop for InMemoryNode {
6060
executor::block_on(async {
6161
// We need to recreate the CliState here to make sure that
6262
// we get a fresh connection to the database (otherwise this code blocks)
63-
// let cli_state = CliState::create(self.cli_state.dir()).await.unwrap();
64-
// cli_state
65-
// .remove_node(&self.node_name)
66-
// .await
67-
// .unwrap_or_else(|e| panic!("cannot delete the node {}: {e:?}", self.node_name));
63+
let cli_state = CliState::create(self.cli_state.dir()).await.unwrap();
64+
cli_state
65+
.remove_node(&self.node_name)
66+
.await
67+
.unwrap_or_else(|e| panic!("cannot delete the node {}: {e:?}", self.node_name));
6868
});
6969
}
7070
}

0 commit comments

Comments
 (0)