From 841e9deae0d02dc232dc3fdcb3dbed0381412bc6 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 12 Aug 2024 18:29:59 +0000 Subject: [PATCH] Consistently pass `DefaultRouter::new` `Default` scoring parameters In 26c1639ab69d6780c97a118f09e42cb42304088a (and later in 50c55dcf32466e3ccf17acea50697fc664950deb and fb693ecbf81be0146a81cc7fd95342c403eacaa9) we switched to using `Default::default()` to initialize `()` for scoring parameters in tests. One `()`s slipped back in recently, which we replace here. --- lightning/src/util/test_utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightning/src/util/test_utils.rs b/lightning/src/util/test_utils.rs index 45e8c081a..4de1fa013 100644 --- a/lightning/src/util/test_utils.rs +++ b/lightning/src/util/test_utils.rs @@ -130,7 +130,7 @@ impl<'a> TestRouter<'a> { ) -> Self { let entropy_source = Arc::new(RandomBytes::new([42; 32])); Self { - router: DefaultRouter::new(network_graph.clone(), logger, entropy_source, scorer, ()), + router: DefaultRouter::new(network_graph.clone(), logger, entropy_source, scorer, Default::default()), network_graph, next_routes: Mutex::new(VecDeque::new()), next_blinded_payment_paths: Mutex::new(Vec::new()), -- 2.39.5