mirror of
https://github.com/sigp/lighthouse.git
synced 2026-07-02 20:34:27 +00:00
Restore Log on Error & Spawn Blocking in Streamer (#5585)
* Restore Logging in Error Cases * Use Spawn Blocking for Loading Blocks in Streamer * Merge remote-tracking branch 'upstream/unstable' into request_logging_spawn_blocking * Address Sean's Comments * save a clone
This commit is contained in:
@@ -1139,7 +1139,6 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
|
||||
pub fn get_blocks_checking_caches(
|
||||
self: &Arc<Self>,
|
||||
block_roots: Vec<Hash256>,
|
||||
executor: &TaskExecutor,
|
||||
) -> Result<
|
||||
impl Stream<
|
||||
Item = (
|
||||
@@ -1149,14 +1148,12 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
|
||||
>,
|
||||
Error,
|
||||
> {
|
||||
Ok(BeaconBlockStreamer::<T>::new(self, CheckCaches::Yes)?
|
||||
.launch_stream(block_roots, executor))
|
||||
Ok(BeaconBlockStreamer::<T>::new(self, CheckCaches::Yes)?.launch_stream(block_roots))
|
||||
}
|
||||
|
||||
pub fn get_blocks(
|
||||
self: &Arc<Self>,
|
||||
block_roots: Vec<Hash256>,
|
||||
executor: &TaskExecutor,
|
||||
) -> Result<
|
||||
impl Stream<
|
||||
Item = (
|
||||
@@ -1166,8 +1163,7 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
|
||||
>,
|
||||
Error,
|
||||
> {
|
||||
Ok(BeaconBlockStreamer::<T>::new(self, CheckCaches::No)?
|
||||
.launch_stream(block_roots, executor))
|
||||
Ok(BeaconBlockStreamer::<T>::new(self, CheckCaches::No)?.launch_stream(block_roots))
|
||||
}
|
||||
|
||||
pub fn get_blobs_checking_early_attester_cache(
|
||||
|
||||
Reference in New Issue
Block a user