Skip to content

Commit 6a8560b

Browse files
committed
cr: Rename apply_selected_change -> apply_selected_path
1 parent 5bd8870 commit 6a8560b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

iroh/src/socket/remote_map/remote_state.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ impl RemoteStateActor {
670670
trace!(?current_path, "keeping current path");
671671
}
672672

673-
self.apply_selected_change();
673+
self.apply_selected_path();
674674
}
675675

676676
/// Propagates a change of [`State::selected_path`] to noq.
@@ -680,7 +680,7 @@ impl RemoteStateActor {
680680
/// - Sets all non-selected paths to [`PathStatus::Backup`]
681681
/// - Opens the selected path if it does not exist on the connection
682682
/// - Sets the selected path to [`PathStatus::Available`]
683-
fn apply_selected_change(&mut self) {
683+
fn apply_selected_path(&mut self) {
684684
let Some(selected) = self.state.selected_path.clone() else {
685685
// We can't open the selected path on all paths if we don't have one yet.
686686
// And we can't close all "unselected" paths either, because we don't know which one is selected.

0 commit comments

Comments
 (0)