diff --git a/Cargo.toml b/Cargo.toml index 6acd010..e355fe9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wnfsutils" -version = "1.1.0" +version = "1.1.1" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/src/private_forest.rs b/src/private_forest.rs index ba9aec7..f9eaf48 100644 --- a/src/private_forest.rs +++ b/src/private_forest.rs @@ -293,7 +293,7 @@ impl<'a> PrivateDirectoryHelper<'a> { ); let node_res = recipient::receive_share(label, &exchange_keypair, forest, store).await; - if node_res.is_err() { + if node_res.is_ok() { let node = node_res.ok().unwrap(); let latest_node = node.search_latest(forest, store).await;