Skip to content

Commit

Permalink
Merge 77d6af0 into fbb9f54
Browse files Browse the repository at this point in the history
  • Loading branch information
RDruon authored Sep 16, 2024
2 parents fbb9f54 + 77d6af0 commit 533b77d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lustrefs-exporter/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,10 @@ async fn handle_error(error: BoxError) -> impl IntoResponse {
)
}

fn default_as_true() -> bool {
true
}

#[derive(Debug, Deserialize)]
struct Params {
// Only disable jobstats if "jobstats=false"
#[serde(default = "default_as_true")]
// Only enable jobstats if "jobstats=true"
#[serde(default)]
jobstats: bool,
}

Expand Down

0 comments on commit 533b77d

Please sign in to comment.