Skip to content

Commit fd6dd0b

Browse files
authored
Merge of #5922
2 parents 5789db0 + bbd0ddb commit fd6dd0b

File tree

33 files changed

+23
-41
lines changed

33 files changed

+23
-41
lines changed

beacon_node/client/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
extern crate slog;
2-
31
mod compute_light_client_updates;
42
pub mod config;
53
mod metrics;

beacon_node/eth1/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#[macro_use]
2-
extern crate lazy_static;
3-
41
mod block_cache;
52
mod deposit_cache;
63
mod inner;

beacon_node/eth1/src/metrics.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
pub use lighthouse_metrics::*;
22

3+
use lazy_static::lazy_static;
4+
35
lazy_static! {
46
/*
57
* Eth1 blocks

beacon_node/execution_layer/src/versioned_hashes.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
extern crate alloy_consensus;
2-
extern crate alloy_rlp;
31
use alloy_consensus::TxEnvelope;
42
use alloy_rlp::Decodable;
53
use types::{EthSpec, ExecutionPayloadRef, Hash256, Unsigned, VersionedHash};

beacon_node/lighthouse_network/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
/// all required libp2p functionality.
33
///
44
/// This crate builds and manages the libp2p services required by the beacon node.
5-
#[macro_use]
6-
extern crate lazy_static;
7-
85
mod config;
96
pub mod service;
107

beacon_node/lighthouse_network/src/metrics.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
pub use lighthouse_metrics::*;
22

3+
use lazy_static::lazy_static;
4+
35
lazy_static! {
46
pub static ref NAT_OPEN: Result<IntGaugeVec> = try_create_int_gauge_vec(
57
"nat_open",

beacon_node/lighthouse_network/src/peer_manager/peerdb/score.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
//!
77
//! The scoring algorithms are currently experimental.
88
use crate::service::gossipsub_scoring_parameters::GREYLIST_THRESHOLD as GOSSIPSUB_GREYLIST_THRESHOLD;
9+
use lazy_static::lazy_static;
910
use serde::Serialize;
1011
use std::time::Instant;
1112
use strum::AsRefStr;

beacon_node/lighthouse_network/src/rpc/protocol.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use crate::rpc::codec::{base::BaseInboundCodec, ssz_snappy::SSZSnappyInboundCode
33
use futures::future::BoxFuture;
44
use futures::prelude::{AsyncRead, AsyncWrite};
55
use futures::{FutureExt, StreamExt};
6+
use lazy_static::lazy_static;
67
use libp2p::core::{InboundUpgrade, UpgradeInfo};
78
use ssz::Encode;
89
use ssz_types::VariableList;

beacon_node/network/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#[macro_use]
2-
extern crate lazy_static;
3-
41
/// This crate provides the network server for Lighthouse.
52
pub mod error;
63
#[allow(clippy::mutable_key_type)] // PeerId in hashmaps are no longer permitted by clippy

beacon_node/network/src/metrics.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use beacon_chain::{
55
sync_committee_verification::Error as SyncCommitteeError,
66
};
77
use fnv::FnvHashMap;
8+
use lazy_static::lazy_static;
89
pub use lighthouse_metrics::*;
910
use lighthouse_network::{
1011
peer_manager::peerdb::client::ClientKind, types::GossipKind, GossipTopic, Gossipsub,

0 commit comments

Comments
 (0)