Skip to content

Conversation

@aldy505
Copy link
Collaborator

@aldy505 aldy505 commented Jul 5, 2025

No description provided.

@aldy505 aldy505 requested a review from a team as a code owner July 5, 2025 13:18
@aldy505
Copy link
Collaborator Author

aldy505 commented Sep 19, 2025

bump @evanpurkhiser

pub struct KafkaConfig {
/// Kafka security protocol to use. The value must be one of "plaintext, "ssl", "sasl_plaintext", "sasl_ssl".
/// If not specified, defaults to "plaintext".
pub kafka_security_protocol: Option<String>,
Copy link
Contributor

Choose a reason for hiding this comment

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

If these are the only possible options, let's represent them as an enum, then.

},
results_kafka_cluster: vec!["127.0.0.1:9092".to_owned()],
results_kafka_topic: "uptime-results".to_owned(),
kafka_config: KafkaConfig {
Copy link
Contributor

Choose a reason for hiding this comment

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

Lets's derive a default for KafkaConfig, so that we can just use that here.

pub results_kafka_topic: String,

/// Kafka extended configuration
#[serde(flatten)]
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be able to use #[serde(flatten, with = "kafka_")], and then not have to have the kafka_ prefix on all those struct field names

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.

2 participants