mirror of
https://github.com/Cuprate/cuprate.git
synced 2025-01-09 20:40:01 +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.
|
//! and downloads it.
|
||||||
//!
|
//!
|
||||||
//! The block downloader is started by [`download_blocks`].
|
//! The block downloader is started by [`download_blocks`].
|
||||||
use futures::FutureExt;
|
use futures::{FutureExt, TryFutureExt};
|
||||||
use std::{
|
use std::{
|
||||||
cmp::{max, min, Ordering, Reverse},
|
cmp::{max, min, Ordering, Reverse},
|
||||||
collections::{BTreeMap, BinaryHeap, HashSet},
|
collections::{BTreeMap, BinaryHeap, HashSet},
|
||||||
|
@ -161,8 +161,8 @@ where
|
||||||
tokio::spawn(
|
tokio::spawn(
|
||||||
block_downloader
|
block_downloader
|
||||||
.run()
|
.run()
|
||||||
.instrument(Span::current())
|
.inspect_err(|e| tracing::debug!("Error downloading blocks: {e}"))
|
||||||
.map(|res| panic!("{res:?}")),
|
.instrument(Span::current()),
|
||||||
);
|
);
|
||||||
|
|
||||||
buffer_stream
|
buffer_stream
|
||||||
|
@ -476,13 +476,12 @@ where
|
||||||
self.block_download_tasks.spawn(async move {
|
self.block_download_tasks.spawn(async move {
|
||||||
(
|
(
|
||||||
block_entry_to_get.start_height,
|
block_entry_to_get.start_height,
|
||||||
Ok(request_batch_from_peer(
|
request_batch_from_peer(
|
||||||
client,
|
client,
|
||||||
block_entry_to_get.ids,
|
block_entry_to_get.ids,
|
||||||
block_entry_to_get.start_height,
|
block_entry_to_get.start_height,
|
||||||
)
|
)
|
||||||
.await
|
.await,
|
||||||
.unwrap()),
|
|
||||||
)
|
)
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue