@@ -2622,7 +2622,7 @@ fn test_simple_partial_retry() {
2622
2622
#[ cfg( feature = "std" ) ]
2623
2623
fn test_threaded_payment_retries ( ) {
2624
2624
// In the first version of the in-`ChannelManager` payment retries, retries weren't limited to
2625
- // a single thread and would happily let multile threads run retries at the same time. Because
2625
+ // a single thread and would happily let multiple threads run retries at the same time. Because
2626
2626
// retries are done by first calculating the amount we need to retry, then dropping the
2627
2627
// relevant lock, then actually sending, we would happily let multiple threads retry the same
2628
2628
// amount at the same time, overpaying our original HTLC!
@@ -2635,7 +2635,7 @@ fn test_threaded_payment_retries() {
2635
2635
// than 10% of the original value. Thus, we want all our retries to be below that. In order to
2636
2636
// keep things simple, we route one HTLC for 0.1% of the payment over channel 1 and the rest
2637
2637
// out over channel 3+4. This will let us ignore 99% of the payment value and deal with only
2638
- // out channel.
2638
+ // our channel.
2639
2639
let chan_1_scid = create_announced_chan_between_nodes_with_value ( & nodes, 0 , 1 , 10_000_000 , 0 ) . 0 . contents . short_channel_id ;
2640
2640
create_announced_chan_between_nodes_with_value ( & nodes, 1 , 3 , 10_000_000 , 0 ) ;
2641
2641
let chan_3_scid = create_announced_chan_between_nodes_with_value ( & nodes, 0 , 2 , 10_000_000 , 0 ) . 0 . contents . short_channel_id ;
@@ -2703,7 +2703,7 @@ fn test_threaded_payment_retries() {
2703
2703
assert_eq ! ( send_msg_events. len( ) , 2 ) ;
2704
2704
send_msg_events. retain ( |msg|
2705
2705
if let MessageSendEvent :: UpdateHTLCs { node_id, .. } = msg {
2706
- // Drop the commitment update for noddes [2], we can just let that one sit pending
2706
+ // Drop the commitment update for nodes [2], we can just let that one sit pending
2707
2707
// forever.
2708
2708
* node_id == nodes[ 1 ] . node . get_our_node_id ( )
2709
2709
} else { panic ! ( ) ; }
0 commit comments