Skip to content

Commit b4ee03d

Browse files
committed
f - use try_for_each
1 parent afe4d64 commit b4ee03d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lightning/src/ln/channel.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5866,8 +5866,7 @@ impl<SP: Deref> FundedChannel<SP> where
58665866

58675867
core::iter::once(&self.funding)
58685868
.chain(self.pending_funding.iter())
5869-
.map(|funding| self.validate_update_add_htlc(funding, msg, fee_estimator))
5870-
.collect::<Result<(), ChannelError>>()?;
5869+
.try_for_each(|funding| self.validate_update_add_htlc(funding, msg, fee_estimator))?;
58715870

58725871
// Now update local state:
58735872
self.context.next_counterparty_htlc_id += 1;

0 commit comments

Comments
 (0)