Skip to content

Commit 8c2713c

Browse files
committed
f fix docs
1 parent ab95042 commit 8c2713c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lightning/src/ln/channel.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1944,8 +1944,9 @@ impl<Signer: Sign> Channel<Signer> {
19441944
/// an HTLC more than once or fulfill once and then attempt to fail after reconnect. We cannot,
19451945
/// however, fail more than once as we wait for an upstream failure to be irrevocably committed
19461946
/// before we fail backwards.
1947-
/// If we do fail twice, we debug_assert!(false) and return Ok(None). Thus, will always return
1948-
/// Ok(_) if debug assertions are turned on or preconditions are met.
1947+
///
1948+
/// If we do fail twice, we debug_assert!(false) and return Ok(()). Thus, will always return
1949+
/// Ok(()) if debug assertions are turned on or preconditions are met.
19491950
pub fn queue_fail_htlc<L: Deref>(&mut self, htlc_id_arg: u64, err_packet: msgs::OnionErrorPacket, logger: &L)
19501951
-> Result<(), ChannelError> where L::Target: Logger {
19511952
self.fail_htlc(htlc_id_arg, err_packet, true, logger)

0 commit comments

Comments
 (0)