From 84cabf71bd7527617aad7ee7579557b0f18c8df1 Mon Sep 17 00:00:00 2001 From: librelois <elois@ifee.fr> Date: Sun, 5 May 2019 00:01:19 +0200 Subject: [PATCH] [fix] blockchain: apply: allow to remove a cert already removed --- .../blockchain/blockchain/src/dubp/apply/mod.rs | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/lib/modules/blockchain/blockchain/src/dubp/apply/mod.rs b/lib/modules/blockchain/blockchain/src/dubp/apply/mod.rs index ee371f52..4ce3f682 100644 --- a/lib/modules/blockchain/blockchain/src/dubp/apply/mod.rs +++ b/lib/modules/blockchain/blockchain/src/dubp/apply/mod.rs @@ -24,7 +24,7 @@ use durs_blockchain_dal::entities::sources::SourceAmount; use durs_blockchain_dal::writers::requests::*; use durs_blockchain_dal::BinDB; use durs_common_tools::fatal_error; -use durs_wot::data::{NewLinkResult, RemLinkResult}; +use durs_wot::data::NewLinkResult; use durs_wot::{NodeId, WebOfTrust}; use std::collections::{HashMap, HashSet}; @@ -186,16 +186,7 @@ pub fn apply_valid_block<W: WebOfTrust>( } wot_db .write(|db| { - let result = db.rem_link(*source, *target); - match result { - RemLinkResult::Removed(_) => {} - _ => fatal_error!( - "Fail to rem_link {}->{} : {:?}", - source.0, - target.0, - result - ), - } + let _ = db.rem_link(*source, *target); }) .expect("Fail to write in WotDB"); } -- GitLab