Skip to content

Commit 748db55

Browse files
committed
f - s/NotFound/SendError
1 parent b75b9df commit 748db55

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lightning/src/ln/channel.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ pub(super) enum ChannelError {
713713
Ignore(String),
714714
Warn(String),
715715
Close((String, ClosureReason)),
716-
NotFound(String),
716+
SendError(String),
717717
}
718718

719719
impl fmt::Debug for ChannelError {
@@ -722,7 +722,7 @@ impl fmt::Debug for ChannelError {
722722
&ChannelError::Ignore(ref e) => write!(f, "Ignore : {}", e),
723723
&ChannelError::Warn(ref e) => write!(f, "Warn : {}", e),
724724
&ChannelError::Close((ref e, _)) => write!(f, "Close : {}", e),
725-
&ChannelError::NotFound(ref e) => write!(f, "Not Found : {}", e),
725+
&ChannelError::SendError(ref e) => write!(f, "Not Found : {}", e),
726726
}
727727
}
728728
}
@@ -733,7 +733,7 @@ impl fmt::Display for ChannelError {
733733
&ChannelError::Ignore(ref e) => write!(f, "{}", e),
734734
&ChannelError::Warn(ref e) => write!(f, "{}", e),
735735
&ChannelError::Close((ref e, _)) => write!(f, "{}", e),
736-
&ChannelError::NotFound(ref e) => write!(f, "{}", e),
736+
&ChannelError::SendError(ref e) => write!(f, "{}", e),
737737
}
738738
}
739739
}

lightning/src/ln/channelmanager.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ impl MsgHandleErrInternal {
792792
err: msg,
793793
action: msgs::ErrorAction::IgnoreError,
794794
},
795-
ChannelError::Close((msg, _)) | ChannelError::NotFound(msg) => LightningError {
795+
ChannelError::Close((msg, _)) | ChannelError::SendError(msg) => LightningError {
796796
err: msg.clone(),
797797
action: msgs::ErrorAction::SendErrorMessage {
798798
msg: msgs::ErrorMessage {
@@ -3022,8 +3022,8 @@ macro_rules! convert_channel_err {
30223022
MsgHandleErrInternal::from_finish_shutdown(msg, *$channel_id, shutdown_res, $channel_update);
30233023
(true, err)
30243024
},
3025-
ChannelError::NotFound(msg) => {
3026-
(false, MsgHandleErrInternal::from_chan_no_close(ChannelError::NotFound(msg), *$channel_id))
3025+
ChannelError::SendError(msg) => {
3026+
(false, MsgHandleErrInternal::from_chan_no_close(ChannelError::SendError(msg), *$channel_id))
30273027
},
30283028
}
30293029
};

0 commit comments

Comments
 (0)