File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -381,13 +381,13 @@ where
381
381
/// channel with a higher or equal inbound capacity than `min_inbound_capacity_msat` exists
382
382
/// * If any public channel exists, the returned `RouteHint`s will be empty, and the sender will
383
383
/// need to find the path by looking at the public channels instead
384
- fn filter_channels ( mut channels : Vec < ChannelDetails > , min_inbound_capacity_msat : Option < u64 > ) -> Vec < RouteHint > {
384
+ fn filter_channels ( channels : Vec < ChannelDetails > , min_inbound_capacity_msat : Option < u64 > ) -> Vec < RouteHint > {
385
385
let mut filtered_channels: HashMap < PublicKey , ChannelDetails > = HashMap :: new ( ) ;
386
386
let min_inbound_capacity = min_inbound_capacity_msat. unwrap_or ( 0 ) ;
387
387
let mut min_capacity_channel_exists = false ;
388
388
let mut online_channel_exists = false ;
389
389
390
- for channel in channels. drain ( .. ) . filter ( |chan| chan. is_channel_ready ) {
390
+ for channel in channels. into_iter ( ) . filter ( |chan| chan. is_channel_ready ) {
391
391
if channel. get_inbound_payment_scid ( ) . is_none ( ) || channel. counterparty . forwarding_info . is_none ( ) {
392
392
continue ;
393
393
}
You can’t perform that action at this time.
0 commit comments