Skip to content

Commit 3fe4a31

Browse files
committed
f - Rename fail_node to node_failed
1 parent 8ee4115 commit 3fe4a31

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning/src/routing/network_graph.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ pub enum NetworkUpdate {
162162
is_permanent: bool,
163163
},
164164
/// An error indicating only that a node has failed, which should be applied via
165-
/// [`NetworkGraph::fail_node`].
165+
/// [`NetworkGraph::node_failed`].
166166
NodeFailure {
167167
/// The node id of the failed node.
168168
node_id: PublicKey,
@@ -272,7 +272,7 @@ where C::Target: chain::Access, L::Target: Logger
272272
NetworkUpdate::NodeFailure { ref node_id, is_permanent } => {
273273
let action = if is_permanent { "Removing" } else { "Disabling" };
274274
log_debug!(self.logger, "{} node graph entry for {} due to a payment failure.", action, node_id);
275-
self.network_graph.fail_node(node_id, is_permanent);
275+
self.network_graph.node_failed(node_id, is_permanent);
276276
},
277277
}
278278
}
@@ -1032,7 +1032,7 @@ impl NetworkGraph {
10321032
}
10331033

10341034
/// Marks a node in the graph as failed.
1035-
pub fn fail_node(&self, _node_id: &PublicKey, is_permanent: bool) {
1035+
pub fn node_failed(&self, _node_id: &PublicKey, is_permanent: bool) {
10361036
if is_permanent {
10371037
// TODO: Wholly remove the node
10381038
} else {

0 commit comments

Comments
 (0)