Skip to content
This repository was archived by the owner on Jan 30, 2026. It is now read-only.

Commit 80135c2

Browse files
..
1 parent d393001 commit 80135c2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ fn build_basin_reconfig(
676676
storage_class: storage_class.cloned(),
677677
retention_policy: retention_policy.cloned(),
678678
timestamping,
679-
delete_on_empty: delete_on_empty_min_age.cloned(),
679+
delete_on_empty_min_age: delete_on_empty_min_age.cloned(),
680680
})
681681
} else {
682682
None
@@ -729,7 +729,7 @@ fn build_stream_reconfig(
729729
storage_class: storage_class.cloned(),
730730
retention_policy: retention_policy.cloned(),
731731
timestamping,
732-
delete_on_empty: delete_on_empty_min_age.cloned(),
732+
delete_on_empty_min_age: delete_on_empty_min_age.cloned(),
733733
};
734734

735735
if storage_class.is_some() {

src/types.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ pub struct StreamConfig {
136136
#[clap(flatten)]
137137
/// Timestamping configuration.
138138
pub timestamping: Option<TimestampingConfig>,
139-
#[arg(long = "delete-on-empty-min-age", help("Example: 1d, 1w, 1y"))]
139+
#[arg(help("Example: 1d, 1w, 1y"))]
140140
/// Delete-on-empty configuration.
141-
pub delete_on_empty: Option<DeleteOnEmpty>,
141+
pub delete_on_empty_min_age: Option<DeleteOnEmpty>,
142142
}
143143

144144
#[derive(ValueEnum, Debug, Clone, Serialize)]
@@ -236,7 +236,7 @@ impl From<StreamConfig> for s2::types::StreamConfig {
236236

237237
let timestamping_config = config.timestamping.map(s2::types::TimestampingConfig::from);
238238

239-
let delete_on_empty = config.delete_on_empty.map(s2::types::DeleteOnEmpty::from);
239+
let delete_on_empty = config.delete_on_empty_min_age.map(s2::types::DeleteOnEmpty::from);
240240

241241
let mut stream_config = s2::types::StreamConfig::new();
242242
if let Some(storage_class) = storage_class {
@@ -343,7 +343,7 @@ impl From<s2::types::StreamConfig> for StreamConfig {
343343
storage_class: config.storage_class.map(Into::into),
344344
retention_policy: config.retention_policy.map(Into::into),
345345
timestamping: config.timestamping.map(Into::into),
346-
delete_on_empty: config.delete_on_empty.map(Into::into),
346+
delete_on_empty_min_age: config.delete_on_empty.map(Into::into),
347347
}
348348
}
349349
}

0 commit comments

Comments
 (0)