Skip to content

Commit

Permalink
moving mode config var to stratus config
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-aranha-cw committed Jul 30, 2024
1 parent 4e9cd7a commit 4b04de0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@ pub struct CommonConfig {
#[arg(long = "env", env = "ENV", default_value = "local")]
pub env: Environment,

/// Stratus mode.
#[arg(long = "mode", env = "MODE")]
pub mode: StratusMode,

/// Number of threads to execute global async tasks.
#[arg(long = "async-threads", env = "ASYNC_THREADS", default_value = "10")]
pub num_async_threads: usize,
Expand Down Expand Up @@ -168,6 +164,10 @@ impl CommonConfig {
/// Configuration for main Stratus service.
#[derive(DebugAsJson, Clone, Parser, derive_more::Deref, serde::Serialize)]
pub struct StratusConfig {
/// Stratus mode.
#[arg(long = "mode", env = "MODE")]
pub mode: StratusMode,

#[clap(flatten)]
pub rpc_server: RpcServerConfig,

Expand Down

0 comments on commit 4b04de0

Please sign in to comment.