Skip to content

Commit

Permalink
fix: better fix address comments
Browse files Browse the repository at this point in the history
Signed-off-by: yihong0618 <[email protected]>
  • Loading branch information
yihong0618 committed Jan 9, 2025
1 parent 15b89a0 commit 72ae7f2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/cmd/src/metasrv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,7 @@ impl StartCommand {
info!("Metasrv options: {:#?}", opts);

let plugin_opts = opts.plugins;
#[allow(unused_mut)]
let mut opts = opts.component;
#[cfg(not(target_os = "android"))]
opts.detect_server_addr();
let mut plugins = Plugins::new();
plugins::setup_metasrv_plugins(&mut plugins, &plugin_opts, &opts)
Expand Down
2 changes: 1 addition & 1 deletion src/meta-srv/src/metasrv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ impl MetasrvOptions {
}

#[cfg(target_os = "android")]
pub fn detect_hostname(&mut self) {
pub fn detect_server_addr(&mut self) {
if self.server_addr.is_empty() {
common_telemetry::debug!("detect local IP is not supported on Android");
}
Expand Down

0 comments on commit 72ae7f2

Please sign in to comment.