Skip to content

Commit

Permalink
deprecate: remove --host and --client-address args (#8575)
Browse files Browse the repository at this point in the history
  • Loading branch information
lmatz authored Mar 16, 2023
1 parent 30a8946 commit 6060672
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 21 deletions.
9 changes: 2 additions & 7 deletions src/compute/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,14 @@ pub struct ComputeNodeOpts {
// TODO: rename to listen_addr and separate out the port.
/// The address that this service listens to.
/// Usually the localhost + desired port.
#[clap(
long,
alias = "host",
env = "RW_LISTEN_ADDR",
default_value = "127.0.0.1:5688"
)]
#[clap(long, env = "RW_LISTEN_ADDR", default_value = "127.0.0.1:5688")]
pub listen_addr: String,

/// The address for contacting this instance of the service.
/// This would be synonymous with the service's "public address"
/// or "identifying address".
/// Optional, we will use listen_addr if not specified.
#[clap(long, alias = "client-address", env = "RW_ADVERTISE_ADDR", long)]
#[clap(long, env = "RW_ADVERTISE_ADDR", long)]
pub advertise_addr: Option<String>,

#[clap(
Expand Down
9 changes: 2 additions & 7 deletions src/frontend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,19 +75,14 @@ pub struct FrontendOpts {
// TODO: rename to listen_addr and separate out the port.
/// The address that this service listens to.
/// Usually the localhost + desired port.
#[clap(
long,
alias = "host",
env = "RW_LISTEN_ADDR",
default_value = "127.0.0.1:4566"
)]
#[clap(long, env = "RW_LISTEN_ADDR", default_value = "127.0.0.1:4566")]
pub listen_addr: String,

/// The address for contacting this instance of the service.
/// This would be synonymous with the service's "public address"
/// or "identifying address".
/// Optional, we will use listen_addr if not specified.
#[clap(long, env = "RW_ADVERTISE_ADDR", alias = "client-address")]
#[clap(long, env = "RW_ADVERTISE_ADDR")]
pub advertise_addr: Option<String>,

// TODO: This is currently unused.
Expand Down
9 changes: 2 additions & 7 deletions src/storage/compactor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,14 @@ pub struct CompactorOpts {
// TODO: rename to listen_addr and separate out the port.
/// The address that this service listens to.
/// Usually the localhost + desired port.
#[clap(
long,
alias = "host",
env = "RW_LISTEN_ADDR",
default_value = "127.0.0.1:6660"
)]
#[clap(long, env = "RW_LISTEN_ADDR", default_value = "127.0.0.1:6660")]
pub listen_addr: String,

/// The address for contacting this instance of the service.
/// This would be synonymous with the service's "public address"
/// or "identifying address".
/// Optional, we will use listen_addr if not specified.
#[clap(long, env = "RW_ADVERTISE_ADDR", alias = "client-address")]
#[clap(long, env = "RW_ADVERTISE_ADDR")]
pub advertise_addr: Option<String>,

// TODO: This is currently unused.
Expand Down

0 comments on commit 6060672

Please sign in to comment.