Skip to content

Commit aabfaec

Browse files
committed
Rename as_coming_from to as_directed_from.
1 parent bf9c807 commit aabfaec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lightning/src/routing/network_graph.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ impl ChannelInfo {
677677

678678
/// Returns a [`DirectedChannelInfo`] for the channel coming from the given `source` to a
679679
/// returned `target`, or `None` if `source` is not one of the channel's counterparties.
680-
pub fn as_coming_from(&self, source: &NodeId) -> Option<(DirectedChannelInfo, &NodeId)> {
680+
pub fn as_directed_from(&self, source: &NodeId) -> Option<(DirectedChannelInfo, &NodeId)> {
681681
let (direction, target) = {
682682
if source == &self.node_one {
683683
(self.one_to_two.as_ref(), &self.node_two)

lightning/src/routing/router.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1581,7 +1581,7 @@ fn add_random_cltv_offset(route: &mut Route, payment_params: &PaymentParameters,
15811581
if let Some(random_channel) = usize::from_be_bytes(random_path_bytes).checked_rem(cur_node.channels.len())
15821582
.and_then(|index| cur_node.channels.get(index))
15831583
.and_then(|id| network_channels.get(id)) {
1584-
random_channel.as_coming_from(&cur_node_id).map(|(dir_info, next_id)| {
1584+
random_channel.as_directed_from(&cur_node_id).map(|(dir_info, next_id)| {
15851585
dir_info.direction().map(|channel_update_info|
15861586
shadow_ctlv_expiry_delta_offset = shadow_ctlv_expiry_delta_offset
15871587
.checked_add(channel_update_info.cltv_expiry_delta.into())

0 commit comments

Comments
 (0)