mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-15 02:42:38 +00:00
Remove delayed lookups (#4992)
* initial rip out * fix unused imports * delete tests and fix lint * fix peers scoring for blobs
This commit is contained in:
@@ -21,8 +21,6 @@ use lighthouse_network::{
|
||||
MessageId, NetworkGlobals, PeerId, PeerRequestId, PubsubMessage, Request, Response,
|
||||
};
|
||||
use logging::TimeLatch;
|
||||
use lru::LruCache;
|
||||
use parking_lot::Mutex;
|
||||
use slog::{crit, debug, o, trace};
|
||||
use slog::{error, warn};
|
||||
use std::sync::Arc;
|
||||
@@ -111,14 +109,10 @@ impl<T: BeaconChainTypes> Router<T> {
|
||||
reprocess_tx: beacon_processor_reprocess_tx,
|
||||
network_globals: network_globals.clone(),
|
||||
invalid_block_storage,
|
||||
delayed_lookup_peers: Mutex::new(LruCache::new(
|
||||
crate::network_beacon_processor::DELAYED_PEER_CACHE_SIZE,
|
||||
)),
|
||||
executor: executor.clone(),
|
||||
log: log.clone(),
|
||||
};
|
||||
let network_beacon_processor = Arc::new(network_beacon_processor);
|
||||
network_beacon_processor.spawn_delayed_lookup_service();
|
||||
|
||||
// spawn the sync thread
|
||||
crate::sync::manager::spawn(
|
||||
|
||||
Reference in New Issue
Block a user