Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
karencfv committed Aug 16, 2024
1 parent ffc8807 commit ecc95de
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 11 deletions.
3 changes: 0 additions & 3 deletions internal-dns-cli/src/bin/dnswait.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ struct Opt {
#[value(rename_all = "kebab-case")]
enum ServiceName {
Cockroach,
// TODO: Remove clickhouse?
Clickhouse,
ClickhouseKeeper,
ClickhouseServer,
}
Expand All @@ -46,7 +44,6 @@ impl From<ServiceName> for internal_dns::ServiceName {
fn from(value: ServiceName) -> Self {
match value {
ServiceName::Cockroach => internal_dns::ServiceName::Cockroach,
ServiceName::Clickhouse => internal_dns::ServiceName::Clickhouse,
ServiceName::ClickhouseServer => {
internal_dns::ServiceName::ClickhouseServer
}
Expand Down
1 change: 0 additions & 1 deletion nexus/test-utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1437,7 +1437,6 @@ pub async fn start_oximeter(
let args = oximeter_collector::OximeterArguments {
id,
address: SocketAddrV6::new(Ipv6Addr::LOCALHOST, 0, 0, 0),
// TODO: Should this be configurable?
replicated: false,
};
Oximeter::with_logger(&config, &args, log).await.map_err(|e| e.to_string())
Expand Down
3 changes: 1 addition & 2 deletions oximeter/collector/src/agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -429,10 +429,9 @@ impl OximeterAgent {
..
}) => {
debug!(log, "oximeter database does not exist, creating");
let is_oximeter_cluster = client.is_oximeter_cluster().await?;
client
.initialize_db_with_version(
is_oximeter_cluster,
replicated,
oximeter_db::OXIMETER_VERSION,
)
.await?;
Expand Down
8 changes: 4 additions & 4 deletions oximeter/collector/src/bin/oximeter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ enum Args {
#[clap(short, long, action)]
address: SocketAddrV6,

// TODO: This flag should be removed once single node functionality
// is removed.
// TODO (https://github.com/oxidecomputer/omicron/issues/4148): This flag
// should be removed once single node functionality is removed.
/// Is `oximeter` connecting to a replicated ClickHouse cluster
#[clap(short, long, num_args = 0, action)]
replicated: bool,
Expand Down Expand Up @@ -106,8 +106,8 @@ enum Args {
#[arg(long, default_value_t = Level::Info, value_parser = parse_log_level)]
log_level: Level,

// TODO: This flag should be removed once single node functionality
// is removed.
// TODO (https://github.com/oxidecomputer/omicron/issues/4148): This flag
// should be removed once single node functionality is removed.
/// Is `oximeter` connecting to a replicated ClickHouse cluster
#[clap(short, long, num_args = 0, action)]
replicated: bool,
Expand Down
3 changes: 2 additions & 1 deletion oximeter/collector/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ impl Config {
pub struct OximeterArguments {
pub id: Uuid,
pub address: SocketAddrV6,
// TODO: Remove once single node ClickHouse functionality is removed
// TODO TODO (https://github.com/oxidecomputer/omicron/issues/4148): Remove
// once single node ClickHouse functionality is removed
pub replicated: bool,
}

Expand Down
2 changes: 2 additions & 0 deletions package/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ pub enum TargetCommand {
default_value = Some("single-node"),
required = false
)]
// TODO (https://github.com/oxidecomputer/omicron/issues/4148): Remove
// once single-node functionality is removed.
/// Specify whether clickhouse will be deployed as a replicated cluster
/// or single-node configuration.
///
Expand Down

0 comments on commit ecc95de

Please sign in to comment.