mirror of
https://github.com/Cuprate/cuprate.git
synced 2024-12-22 19:49:28 +00:00
remove test unwrap
This commit is contained in:
parent
18d4b77070
commit
efbe18b242
1 changed files with 5 additions and 6 deletions
|
@ -4,7 +4,7 @@
|
|||
//! and downloads it.
|
||||
//!
|
||||
//! The block downloader is started by [`download_blocks`].
|
||||
use futures::FutureExt;
|
||||
use futures::{FutureExt, TryFutureExt};
|
||||
use std::{
|
||||
cmp::{max, min, Ordering, Reverse},
|
||||
collections::{BTreeMap, BinaryHeap, HashSet},
|
||||
|
@ -161,8 +161,8 @@ where
|
|||
tokio::spawn(
|
||||
block_downloader
|
||||
.run()
|
||||
.instrument(Span::current())
|
||||
.map(|res| panic!("{res:?}")),
|
||||
.inspect_err(|e| tracing::debug!("Error downloading blocks: {e}"))
|
||||
.instrument(Span::current()),
|
||||
);
|
||||
|
||||
buffer_stream
|
||||
|
@ -476,13 +476,12 @@ where
|
|||
self.block_download_tasks.spawn(async move {
|
||||
(
|
||||
block_entry_to_get.start_height,
|
||||
Ok(request_batch_from_peer(
|
||||
request_batch_from_peer(
|
||||
client,
|
||||
block_entry_to_get.ids,
|
||||
block_entry_to_get.start_height,
|
||||
)
|
||||
.await
|
||||
.unwrap()),
|
||||
.await,
|
||||
)
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue