@@ -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