one liner, clean up unused warning use "?" for updating head ()

This commit is contained in:
AntiochP 2017-12-11 11:03:21 -05:00 committed by GitHub
parent a4729b51ac
commit 1e796642c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
}