Skip to content

Commit 989058b

Browse files
committed
nit fix
1 parent 593804e commit 989058b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/ln/channelmanager.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2088,7 +2088,7 @@ impl ChannelManager {
20882088
let error_code = byte_utils::slice_to_be16(&err_packet.failuremsg[0..2]);
20892089
error_code_ret = Some(error_code);
20902090

2091-
// eiter from intermediate or final node
2091+
// either from intermediate or final node
20922092
if error_code&0xff == 1 || error_code&0xff == 2 || error_code&0xff == 3 {
20932093
match error_code {
20942094
_c if _c == PERM|1 => onion_failure_log!("invalid_realm", error_code),
@@ -2211,7 +2211,7 @@ impl ChannelManager {
22112211
},
22122212
14 => { // expiry_too_soon
22132213
onion_failure_log!("expiry_too_soon", error_code);
2214-
// alwayws valid?
2214+
// always valid?
22152215
false
22162216
},
22172217
20 => {
@@ -2246,7 +2246,6 @@ impl ChannelManager {
22462246
}
22472247
}
22482248
}).expect("Route that we sent via spontaneously grew invalid keys in the middle of it?");
2249-
//res.unwrap_or((None, true))
22502249
let (channel_update, payment_retryable) = res.expect("should have been set!");
22512250
(channel_update, payment_retryable, error_code_ret)
22522251
} else {

0 commit comments

Comments
 (0)