Skip to content

Commit

Permalink
chore: fix document test
Browse files Browse the repository at this point in the history
Signed-off-by: MrCroxx <[email protected]>
  • Loading branch information
MrCroxx committed Sep 10, 2024
1 parent 2c16986 commit 2805104
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/compute/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,9 @@ pub struct ComputeNodeOpts {
pub role: Role,

/// Used for control the metrics level, similar to log level.
/// 0 = disable metrics
/// >0 = enable metrics
///
/// level = 0: disable metrics
/// level > 0: enable metrics
#[clap(long, hide = true, env = "RW_METRICS_LEVEL")]
#[override_opts(path = server.metrics_level)]
pub metrics_level: Option<MetricLevel>,
Expand Down
5 changes: 3 additions & 2 deletions src/frontend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,9 @@ pub struct FrontendOpts {
pub config_path: String,

/// Used for control the metrics level, similar to log level.
/// 0 = disable metrics
/// >0 = enable metrics
///
/// level = 0: disable metrics
/// level > 0: enable metrics
#[clap(long, hide = true, env = "RW_METRICS_LEVEL")]
#[override_opts(path = server.metrics_level)]
pub metrics_level: Option<MetricLevel>,
Expand Down

0 comments on commit 2805104

Please sign in to comment.