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 26, 2025
1 parent f1a1288 commit d663e08
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 @@ -16352,7 +16352,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 @@ -4080,13 +4080,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 d663e08

Please sign in to comment.