chore(clippy): make clippy happy (#1710)

This commit is contained in:
Matthias Seitz
2023-03-11 15:27:24 +01:00
committed by GitHub
parent 853da85c44
commit e5a0fc6550
11 changed files with 43 additions and 48 deletions

View File

@ -342,11 +342,11 @@ impl Command {
NetworkManager::builder(config).await?.request_handler(client).split_with_handle();
let known_peers_file = self.network.persistent_peers_file();
task_executor.spawn_critical_with_signal("p2p network task", |shutdown| async move {
run_network_until_shutdown(shutdown, network, known_peers_file).await
task_executor.spawn_critical_with_signal("p2p network task", |shutdown| {
run_network_until_shutdown(shutdown, network, known_peers_file)
});
task_executor.spawn_critical("p2p eth request handler", async move { eth.await });
task_executor.spawn_critical("p2p eth request handler", eth);
// TODO spawn pool

View File

@ -137,7 +137,7 @@ impl Command {
};
let (_, result) = (move || {
let client = fetch_client.clone();
async move { client.get_block_bodies(vec![hash]).await }
client.get_block_bodies(vec![hash])
})
.retry(&backoff)
.notify(|err, _| println!("Error requesting block: {err}. Retrying..."))