Skip to content

Commit 1db907f

Browse files
committed
Fix unused variable introduced in my changes in bdbf566
The original was written by Tamas, but I made one small tweak and broke the warning-free-ness of it.
1 parent 19a0f84 commit 1db907f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ln/onion_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ pub(super) fn build_onion_payloads(route: &Route, starting_htlc_offset: u32) ->
114114
let mut last_short_channel_id = 0;
115115
let mut res: Vec<msgs::OnionHopData> = Vec::with_capacity(route.hops.len());
116116

117-
for (idx, hop) in route.hops.iter().enumerate().rev() {
117+
for hop in route.hops.iter().rev() {
118118
// First hop gets special values so that it can check, on receipt, that everything is
119119
// exactly as it should be (and the next hop isn't trying to probe to find out if we're
120120
// the intended recipient).

0 commit comments

Comments
 (0)