remove Result<> from Blob accessors, add parent (#2608)

* remove Result<> from Blob accessors, add parent
* update chacha's golden
* fixup benches
This commit is contained in:
Rob Walker
2019-01-30 20:18:28 -08:00
committed by GitHub
parent a746969995
commit 1b50fbbc90
13 changed files with 204 additions and 249 deletions

View File

@ -1764,10 +1764,9 @@ fn test_broadcast_last_tick() {
info!("Checking a node...");
let mut last_tick_blob: SharedBlob = SharedBlob::default();
while let Ok(new_blobs) = receiver.try_recv() {
let last_blob = new_blobs.into_iter().find(|b| {
b.read().unwrap().index().expect("Expected index in blob")
== last_tick_entry_height - 2
});
let last_blob = new_blobs
.into_iter()
.find(|b| b.read().unwrap().index() == last_tick_entry_height - 2);
if let Some(last_blob) = last_blob {
last_tick_blob = last_blob;
break;