Fully integrate node on retrieve-adv
Some checks failed
continuous-integration/drone/push Build is failing

Fixes #33
This commit is contained in:
Olivier 'reivilibre' 2021-06-11 20:36:38 +01:00
parent 6195d12a58
commit 8a495e6926

View File

@ -169,7 +169,7 @@ fn main() -> anyhow::Result<()> {
destination,
} => {
let (_pdesc, pile) = open_pile()?;
let pointer = pile
let mut pointer = pile
.read_pointer(pointer_name)?
.expect("No pointer by that name!"); // todo be nice
@ -177,7 +177,10 @@ fn main() -> anyhow::Result<()> {
bail!("The destination already exists. Overwriting not allowed (yet).");
}
let mut root_tree_node = commands::retrieve_tree_node(&pile, pointer.chunk_ref)?;
let mut root_tree_node =
commands::retrieve_tree_node(&pile, pointer.chunk_ref.clone())?;
fully_integrate_pointer_node(&pile, &mut root_tree_node.node, &mut pointer)?;
// todo >2 workers
extracting::extract(destination, &mut root_tree_node.node, &pile, true, 2)?;