Skip to content

Commit

Permalink
chore(stream-persistence): remove hidden and lowercase options
Browse files Browse the repository at this point in the history
Signed-off-by: Márk Kővári <[email protected]>
  • Loading branch information
markkovari committed Dec 19, 2024
1 parent f49da7c commit c18b3d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,13 +183,11 @@ struct Args {
hide = true
)]
max_manifest_bucket_bytes: i64,
/// The storage type of nats streams, maps to [`StorageType`](async_nats::jetstream::stream::StorageType)
/// Possible values: "File" or "Memory", default is `File`
/// The storage type of nats streams, possible values: "file" or "memory", default is "file"
#[arg(
long = "stream-persistence",
env = "WADM_STREAM_PERSISTENCE",
default_value_t = StreamPersistence::File,
hide = true
default_value_t = StreamPersistence::File
)]
stream_persistence: StreamPersistence,
/// Maximum bytes to keep for the command stream
Expand Down
6 changes: 3 additions & 3 deletions src/nats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use tracing::{debug, warn};
use wadm::DEFAULT_EXPIRY_TIME;

#[derive(Debug, Clone, Copy, Default, clap::ValueEnum)]
#[clap(rename_all = "PascalCase")]
#[clap(rename_all = "lower")]
pub enum StreamPersistence {
#[default]
File,
Expand All @@ -25,8 +25,8 @@ pub enum StreamPersistence {
impl std::fmt::Display for StreamPersistence {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
StreamPersistence::File => write!(f, "File"),
StreamPersistence::Memory => write!(f, "Memory"),
StreamPersistence::File => write!(f, "file"),
StreamPersistence::Memory => write!(f, "memory"),
}
}
}
Expand Down

0 comments on commit c18b3d8

Please sign in to comment.