@@ -153,7 +153,7 @@ pub enum NetworkUpdate {
153
153
msg : ChannelUpdate ,
154
154
} ,
155
155
/// An error indicating only that a channel has failed, which should be applied via
156
- /// [`NetworkGraph::fail_channel `].
156
+ /// [`NetworkGraph::channel_failed `].
157
157
ChannelFailure {
158
158
/// The short channel id of the closed channel.
159
159
short_channel_id : u64 ,
@@ -267,7 +267,7 @@ where C::Target: chain::Access, L::Target: Logger
267
267
NetworkUpdate :: ChannelFailure { short_channel_id, is_permanent } => {
268
268
let action = if is_permanent { "Removing" } else { "Disabling" } ;
269
269
log_debug ! ( self . logger, "{} channel graph entry for {} due to a payment failure." , action, short_channel_id) ;
270
- self . network_graph . fail_channel ( short_channel_id, is_permanent) ;
270
+ self . network_graph . channel_failed ( short_channel_id, is_permanent) ;
271
271
} ,
272
272
NetworkUpdate :: NodeFailure { ref node_id, is_permanent } => {
273
273
let action = if is_permanent { "Removing" } else { "Disabling" } ;
@@ -1012,7 +1012,7 @@ impl NetworkGraph {
1012
1012
/// If permanent, removes a channel from the local storage.
1013
1013
/// May cause the removal of nodes too, if this was their last channel.
1014
1014
/// If not permanent, makes channels unavailable for routing.
1015
- pub fn fail_channel ( & self , short_channel_id : u64 , is_permanent : bool ) {
1015
+ pub fn channel_failed ( & self , short_channel_id : u64 , is_permanent : bool ) {
1016
1016
let mut channels = self . channels . write ( ) . unwrap ( ) ;
1017
1017
if is_permanent {
1018
1018
if let Some ( chan) = channels. remove ( & short_channel_id) {
0 commit comments