Skip to content

Commit 5c1ad36

Browse files
author
sangbida
committed
fix formatting
1 parent 80cc9d1 commit 5c1ad36

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

simln-lib/src/sim_node.rs

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ impl<'a, T: SimNetwork> SimNode<'a, T> {
474474
let scorer = ProbabilisticScorer::new(
475475
ProbabilisticScoringDecayParameters::default(),
476476
pathfinding_graph.clone(),
477-
&WrappedLog {}
477+
&WrappedLog {},
478478
);
479479

480480
SimNode {
@@ -1573,11 +1573,11 @@ mod tests {
15731573
let (shutdown, _listener) = triggered::trigger();
15741574
let channels = create_simulated_channels(3, capacity);
15751575
let routing_graph = Arc::new(populate_network_graph(channels.clone()).unwrap());
1576-
1576+
15771577
let scorer = ProbabilisticScorer::new(
15781578
ProbabilisticScoringDecayParameters::default(),
15791579
routing_graph.clone(),
1580-
&WrappedLog {}
1580+
&WrappedLog {},
15811581
);
15821582

15831583
// Collect pubkeys in-order, pushing the last node on separately because they don't have an outgoing
@@ -1637,13 +1637,8 @@ mod tests {
16371637
dest: PublicKey,
16381638
amt: u64,
16391639
) -> Route {
1640-
let route = find_payment_route(
1641-
&source,
1642-
dest,
1643-
amt,
1644-
&self.routing_graph,
1645-
&self.scorer,
1646-
).unwrap();
1640+
let route =
1641+
find_payment_route(&source, dest, amt, &self.routing_graph, &self.scorer).unwrap();
16471642

16481643
let (sender, receiver) = oneshot::channel();
16491644
self.graph

0 commit comments

Comments
 (0)