Skip to content

Commit

Permalink
Remove several unused imports in bench-specific modules
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBlueMatt committed Feb 10, 2025
1 parent e229335 commit 3fcd949
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lightning/src/ln/channelmanager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15878,7 +15878,7 @@ pub mod bench {
use bitcoin::{Transaction, TxOut};
use bitcoin::transaction::Version;

use crate::sync::{Arc, Mutex, RwLock};
use crate::sync::{Arc, RwLock};

use criterion::Criterion;

Expand Down
5 changes: 2 additions & 3 deletions lightning/src/routing/scoring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3675,13 +3675,12 @@ mod tests {
pub mod benches {
use super::*;
use criterion::Criterion;
use crate::routing::router::{bench_utils, RouteHop};
use crate::routing::router::bench_utils;
use crate::util::test_utils::TestLogger;
use crate::types::features::{ChannelFeatures, NodeFeatures};

pub fn decay_100k_channel_bounds(bench: &mut Criterion) {
let logger = TestLogger::new();
let (network_graph, mut scorer) = bench_utils::read_graph_scorer(&logger).unwrap();
let (_, mut scorer) = bench_utils::read_graph_scorer(&logger).unwrap();
let mut cur_time = Duration::ZERO;
cur_time += Duration::from_millis(1);
scorer.time_passed(cur_time);
Expand Down

0 comments on commit 3fcd949

Please sign in to comment.