Skip to content

refactor: Remove mostly-unused function get_secondary_self_addrs()#8173

Merged
Hocuri merged 1 commit into
mainfrom
hoc/remove-get-self-addrs
Apr 25, 2026
Merged

refactor: Remove mostly-unused function get_secondary_self_addrs()#8173
Hocuri merged 1 commit into
mainfrom
hoc/remove-get-self-addrs

Conversation

@Hocuri
Copy link
Copy Markdown
Collaborator

@Hocuri Hocuri commented Apr 25, 2026

No description provided.

@Hocuri Hocuri requested review from iequidoo and link2xt April 25, 2026 21:09
@Hocuri Hocuri merged commit fa68c1f into main Apr 25, 2026
31 checks passed
@Hocuri Hocuri deleted the hoc/remove-get-self-addrs branch April 25, 2026 21:37
Comment thread src/config.rs
/// Returns `false` if no addresses are configured.
pub(crate) async fn is_self_addr(&self, addr: &str) -> Result<bool> {
Ok(self
.get_config(Config::ConfiguredAddr)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably it's better to still check Config::ConfiguredAddr first because it's almost for free as we have the config cache

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants