Skip to content

Commit 0a20547

Browse files
committed
Fix lints
1 parent 1b6833f commit 0a20547

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

beacon_node/network/src/subnet_service/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ impl<T: BeaconChainTypes> SubnetService<T> {
140140
} else {
141141
// Not subscribed to all subnets, so just calculate the required subnets from the
142142
for subnet_id in
143-
SubnetId::compute_attestation_subnets(node_id.raw().into(), &beacon_chain.spec)
143+
SubnetId::compute_attestation_subnets(node_id.raw(), &beacon_chain.spec)
144144
{
145145
permanent_attestation_subscriptions.insert(Subnet::Attestation(subnet_id));
146146
}

beacon_node/network/src/subnet_service/tests/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use types::{
2222

2323
// Set to enable/disable logging
2424
const TEST_LOG_LEVEL: Option<slog::Level> = Some(slog::Level::Debug);
25-
//const TEST_LOG_LEVEL: Option<slog::Level> = None;
25+
// const TEST_LOG_LEVEL: Option<slog::Level> = None;
2626

2727
const SLOT_DURATION_MILLIS: u64 = 400;
2828

@@ -45,7 +45,7 @@ impl TestBeaconChain {
4545

4646
let keypairs = generate_deterministic_keypairs(1);
4747

48-
let log = get_logger(None);
48+
let log = get_logger(TEST_LOG_LEVEL);
4949
let store =
5050
HotColdDB::open_ephemeral(StoreConfig::default(), spec.clone(), log.clone()).unwrap();
5151

consensus/types/src/subnet_id.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -172,17 +172,11 @@ mod tests {
172172
for x in 0..node_ids.len() {
173173
println!("Test: {}", x);
174174
println!(
175-
<<<<<<< HEAD
176-
"NodeId: {}\nExpected_subnets: {:?}",
175+
"NodeId: {:?}\nExpected_subnets: {:?}",
177176
node_ids[x], expected_subnets[x]
178-
=======
179-
"NodeId: {:?}\n Epoch: {}\n, expected_update_time: {}\n, expected_subnets: {:?}",
180-
node_ids[x], epochs[x], expected_valid_time[x], expected_subnets[x]
181-
>>>>>>> network/unstable
182177
);
183178

184-
let computed_subnets =
185-
SubnetId::compute_attestation_subnets::<crate::MainnetEthSpec>(node_ids[x], &spec);
179+
let computed_subnets = SubnetId::compute_attestation_subnets(node_ids[x], &spec);
186180

187181
assert_eq!(
188182
expected_subnets[x],

0 commit comments

Comments
 (0)