Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/payment_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,14 +198,14 @@ impl PaymentRequest {

/// Return the extra routing info.
pub fn routing_info(&self) -> Vec<ExtraHop> {
self.tags
.iter()
.filter_map(|v| match *v {
Tag::RoutingInfo { ref path } => Some(path.to_owned()),
_ => None,
})
.flatten()
.collect_vec()
Itertools::flatten(
self.tags
.iter()
.filter_map(|v| match *v {
Tag::RoutingInfo { ref path } => Some(path.to_owned()),
_ => None,
})
).collect_vec()
}

/// Return the min_final_cltv_expiry if any.
Expand Down