File tree 1 file changed +0
-3
lines changed
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
@@ -947,7 +946,6 @@ impl OutboundPayments {
947
946
let mut has_ok = false ;
948
947
let mut has_err = false ;
949
948
let mut pending_amt_unsent = 0 ;
950
- let mut max_unsent_cltv_delta = 0 ;
951
949
for ( res, path) in results. iter ( ) . zip ( route. paths . iter ( ) ) {
952
950
if res. is_ok ( ) { has_ok = true ; }
953
951
if res. is_err ( ) { has_err = true ; }
@@ -958,7 +956,6 @@ impl OutboundPayments {
958
956
has_ok = true ;
959
957
} else if res. is_err ( ) {
960
958
pending_amt_unsent += path. last ( ) . unwrap ( ) . fee_msat ;
961
- max_unsent_cltv_delta = cmp:: max ( max_unsent_cltv_delta, path. last ( ) . unwrap ( ) . cltv_expiry_delta ) ;
962
959
}
963
960
}
964
961
if has_err && has_ok {
You can’t perform that action at this time.
0 commit comments