From 1e796642c42a0949ddcfc1189b3e1fbe4c52f6b7 Mon Sep 17 00:00:00 2001 From: AntiochP <30642645+antiochp@users.noreply.github.com> Date: Mon, 11 Dec 2017 11:03:21 -0500 Subject: [PATCH] one liner, clean up unused warning use "?" for updating head (#464) --- chain/src/pipe.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chain/src/pipe.rs b/chain/src/pipe.rs index 4249f53a..9b0892d3 100644 --- a/chain/src/pipe.rs +++ b/chain/src/pipe.rs @@ -130,7 +130,7 @@ pub fn sync_block_header( let _ = header_ctx.sumtrees.write().unwrap(); // now update the header_head (if new header with most work) and the sync_head (always) - update_header_head(bh, &mut header_ctx); + update_header_head(bh, &mut header_ctx)?; update_sync_head(bh, &mut sync_ctx) }