Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2170 from holochain/dev-test-4
Browse files Browse the repository at this point in the history
Dev test 4
  • Loading branch information
zippy committed Mar 26, 2020
2 parents f7dca40 + b26863e commit ada9b3c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions crates/core/src/dht/dht_inner_reducers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ pub(crate) fn reduce_update_entry_inner(
pub(crate) fn reduce_remove_entry_inner(
store: &mut DhtStore,
latest_deleted_address: &Address,
deletion_address: &Address,
_deletion_address: &Address,
) -> HcResult<Address> {
let entry = store
.get(latest_deleted_address)?
Expand Down Expand Up @@ -137,10 +137,11 @@ pub(crate) fn reduce_remove_entry_inner(
.map_err(|_| HolochainError::ErrorGeneric("Could not create eav".into()))?;
store.add_eavi(&new_status_eav)?;

// THIS IS WRONG THERE IS NEW ENTRY TO REDIRECT A GET TO WHEN YOU DELETE SOMETHING
// Update crud-link
let crud_link_eav = create_crud_link_eav(latest_deleted_address, deletion_address)
.map_err(|_| HolochainError::ErrorGeneric(String::from("Could not create eav")))?;
store.add_eavi(&crud_link_eav)?;
//let crud_link_eav = create_crud_link_eav(latest_deleted_address, deletion_address)
// .map_err(|_| HolochainError::ErrorGeneric(String::from("Could not create eav")))?;
//store.add_eavi(&crud_link_eav)?;

Ok(latest_deleted_address.clone())
}
2 changes: 1 addition & 1 deletion crates/core/src/network/handler/fetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub fn handle_fetch_entry(get_dht_data: FetchEntryData, context: Arc<Context>) {
}
}
Err(get_content_error) => {
log_warn!(context, "net/handle_fetch_entry: Could not get content aspect of requested entry ({:?}), error: {:?}",
log_debug!(context, "net/handle_fetch_entry: Could not get content aspect of requested entry ({:?}), error: {:?}",
address,
get_content_error,
);
Expand Down

0 comments on commit ada9b3c

Please sign in to comment.