File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ use crate::util::time::Time;
26
26
use crate :: util:: time:: tests:: SinceEpoch ;
27
27
use crate :: util:: ser:: ReadableArgs ;
28
28
29
- use core:: cmp;
30
29
use core:: fmt:: { self , Display , Formatter } ;
31
30
use core:: ops:: Deref ;
32
31
@@ -1048,7 +1047,6 @@ impl OutboundPayments {
1048
1047
let mut has_ok = false ;
1049
1048
let mut has_err = false ;
1050
1049
let mut pending_amt_unsent = 0 ;
1051
- let mut max_unsent_cltv_delta = 0 ;
1052
1050
for ( res, path) in results. iter ( ) . zip ( route. paths . iter ( ) ) {
1053
1051
if res. is_ok ( ) { has_ok = true ; }
1054
1052
if res. is_err ( ) { has_err = true ; }
@@ -1059,7 +1057,6 @@ impl OutboundPayments {
1059
1057
has_ok = true ;
1060
1058
} else if res. is_err ( ) {
1061
1059
pending_amt_unsent += path. last ( ) . unwrap ( ) . fee_msat ;
1062
- max_unsent_cltv_delta = cmp:: max ( max_unsent_cltv_delta, path. last ( ) . unwrap ( ) . cltv_expiry_delta ) ;
1063
1060
}
1064
1061
}
1065
1062
if has_err && has_ok {
You can’t perform that action at this time.
0 commit comments