Skip to content

Commit 1e1302e

Browse files
committed
Rename set_banned -> add_banned
1 parent c1671a5 commit 1e1302e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/routing/scoring.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ impl<G: Deref<Target = NetworkGraph<L>>, L: Deref, T: Time> ProbabilisticScorerU
412412

413413
/// Marks the node with the given `node_id` as banned, i.e.,
414414
/// it will be avoided during path finding.
415-
pub fn set_banned(&mut self, node_id: &NodeId) {
415+
pub fn add_banned(&mut self, node_id: &NodeId) {
416416
self.banned_nodes.insert(*node_id);
417417
}
418418

0 commit comments

Comments
 (0)