Skip to content

Commit 6060672

Browse files
authored
deprecate: remove --host and --client-address args (risingwavelabs#8575)
1 parent 30a8946 commit 6060672

File tree

3 files changed

+6
-21
lines changed

3 files changed

+6
-21
lines changed

src/compute/src/lib.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,14 @@ pub struct ComputeNodeOpts {
4141
// TODO: rename to listen_addr and separate out the port.
4242
/// The address that this service listens to.
4343
/// Usually the localhost + desired port.
44-
#[clap(
45-
long,
46-
alias = "host",
47-
env = "RW_LISTEN_ADDR",
48-
default_value = "127.0.0.1:5688"
49-
)]
44+
#[clap(long, env = "RW_LISTEN_ADDR", default_value = "127.0.0.1:5688")]
5045
pub listen_addr: String,
5146

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

5954
#[clap(

src/frontend/src/lib.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,19 +75,14 @@ pub struct FrontendOpts {
7575
// TODO: rename to listen_addr and separate out the port.
7676
/// The address that this service listens to.
7777
/// Usually the localhost + desired port.
78-
#[clap(
79-
long,
80-
alias = "host",
81-
env = "RW_LISTEN_ADDR",
82-
default_value = "127.0.0.1:4566"
83-
)]
78+
#[clap(long, env = "RW_LISTEN_ADDR", default_value = "127.0.0.1:4566")]
8479
pub listen_addr: String,
8580

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

9388
// TODO: This is currently unused.

src/storage/compactor/src/lib.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,14 @@ pub struct CompactorOpts {
2727
// TODO: rename to listen_addr and separate out the port.
2828
/// The address that this service listens to.
2929
/// Usually the localhost + desired port.
30-
#[clap(
31-
long,
32-
alias = "host",
33-
env = "RW_LISTEN_ADDR",
34-
default_value = "127.0.0.1:6660"
35-
)]
30+
#[clap(long, env = "RW_LISTEN_ADDR", default_value = "127.0.0.1:6660")]
3631
pub listen_addr: String,
3732

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

4540
// TODO: This is currently unused.

0 commit comments

Comments
 (0)