mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2024-12-22 03:30:38 +00:00
Appease clippy in Rust 1.70 (#4365)
## Issue Addressed NA ## Proposed Changes Fixes some new clippy lints raised after updating to Rust 1.70. ## Additional Info NA
This commit is contained in:
parent
4af4e98c82
commit
d07c78bccf
@ -742,7 +742,7 @@ where
|
||||
|
||||
runtime_context
|
||||
.executor
|
||||
.spawn_without_exit(async move { server.await }, "http-metrics");
|
||||
.spawn_without_exit(server, "http-metrics");
|
||||
|
||||
Some(listen_addr)
|
||||
} else {
|
||||
|
@ -38,7 +38,7 @@ async fn returns_200_ok() {
|
||||
};
|
||||
let (listening_socket, server) = http_metrics::serve(ctx, server_shutdown).unwrap();
|
||||
|
||||
tokio::spawn(async { server.await });
|
||||
tokio::spawn(server);
|
||||
|
||||
let url = format!(
|
||||
"http://{}:{}/metrics",
|
||||
|
@ -1,4 +1,4 @@
|
||||
///! The subnet predicate used for searching for a particular subnet.
|
||||
//! The subnet predicate used for searching for a particular subnet.
|
||||
use super::*;
|
||||
use crate::types::{EnrAttestationBitfield, EnrSyncCommitteeBitfield};
|
||||
use slog::trace;
|
||||
|
@ -1,4 +1,4 @@
|
||||
///! This implements a time-based LRU cache for fast checking of duplicates
|
||||
//! This implements a time-based LRU cache for fast checking of duplicates
|
||||
use fnv::FnvHashSet;
|
||||
use std::collections::VecDeque;
|
||||
use std::time::{Duration, Instant};
|
||||
|
@ -146,7 +146,7 @@ impl<T: EthSpec> ProductionValidatorClient<T> {
|
||||
context
|
||||
.clone()
|
||||
.executor
|
||||
.spawn_without_exit(async move { server.await }, "metrics-api");
|
||||
.spawn_without_exit(server, "metrics-api");
|
||||
|
||||
Some(ctx)
|
||||
} else {
|
||||
@ -590,7 +590,7 @@ impl<T: EthSpec> ProductionValidatorClient<T> {
|
||||
self.context
|
||||
.clone()
|
||||
.executor
|
||||
.spawn_without_exit(async move { server.await }, "http-api");
|
||||
.spawn_without_exit(server, "http-api");
|
||||
|
||||
Some(listen_addr)
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user