Browse Source

Fully integrate node on retrieve-adv

Fixes #33
develop
Olivier 'reivilibre' 2 weeks ago
parent
commit
8a495e6926
  1. 7
      src/main.rs

7
src/main.rs

@ -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)?;

Loading…
Cancel
Save