From 1554bb780943a8a0c97ad8ba1507eb3e0cb9ac8f Mon Sep 17 00:00:00 2001 From: Eric Harris-Braun Date: Wed, 29 Jul 2020 13:25:39 -0400 Subject: [PATCH] fix bug in aspect map --- crates/core/src/dht/dht_reducers.rs | 2 +- crates/core_types/src/network/entry_aspect.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/core/src/dht/dht_reducers.rs b/crates/core/src/dht/dht_reducers.rs index 2a31f1fa85..5cfa68d935 100644 --- a/crates/core/src/dht/dht_reducers.rs +++ b/crates/core/src/dht/dht_reducers.rs @@ -64,7 +64,7 @@ pub(crate) fn reduce_commit_entry( match reduce_store_entry_inner(&mut new_store, entry) { Ok(()) => Some(new_store), Err(e) => { - println!("{}", e); + error!("{}", e); None } } diff --git a/crates/core_types/src/network/entry_aspect.rs b/crates/core_types/src/network/entry_aspect.rs index 1430ed4f8b..062b591506 100644 --- a/crates/core_types/src/network/entry_aspect.rs +++ b/crates/core_types/src/network/entry_aspect.rs @@ -100,7 +100,7 @@ impl EntryAspect { pub fn entry_address(&self) -> Result { Ok(match self { EntryAspect::Content(_, header) => match header.link_update_delete() { - Some(ref updated_entry) => updated_entry.clone(), + Some(ref _updated_entry) => header.entry_address().clone(), //updated_entry.clone(), None => header.entry_address().clone(), }, EntryAspect::LinkAdd(link_data, _) => link_data.link.base().clone(),