mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-23 14:54:45 +00:00
Beacon chain tasks use task executor
This commit is contained in:
@@ -84,7 +84,7 @@ pub struct Service<TSpec: EthSpec> {
|
||||
|
||||
impl<TSpec: EthSpec> Service<TSpec> {
|
||||
pub fn new(
|
||||
handle: &tokio::runtime::Handle,
|
||||
handle: tokio::runtime::Handle,
|
||||
config: &NetworkConfig,
|
||||
enr_fork_id: EnrForkId,
|
||||
log: &slog::Logger,
|
||||
@@ -131,7 +131,7 @@ impl<TSpec: EthSpec> Service<TSpec> {
|
||||
}
|
||||
SwarmBuilder::new(transport, behaviour, local_peer_id.clone())
|
||||
.peer_connection_limit(MAX_CONNECTIONS_PER_PEER)
|
||||
.executor(Box::new(Executor(handle.clone())))
|
||||
.executor(Box::new(Executor(handle)))
|
||||
.build()
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user