mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
chore: Add CONTINUWUITY_ environment variables
Also updates some examples to match
This commit is contained in:
+16
-2
@@ -74,17 +74,30 @@ pub(crate) struct Args {
|
||||
/// with the exception of the last bucket, try increasing this value to e.g.
|
||||
/// 50 or 100. Inversely, decrease to 10 etc if the histogram lacks
|
||||
/// resolution.
|
||||
#[arg(long, hide(true), env = "CONDUWUIT_RUNTIME_HISTOGRAM_INTERVAL", default_value = "25")]
|
||||
#[arg(
|
||||
long,
|
||||
hide(true),
|
||||
env = "CONTINUWUITY_RUNTIME_HISTOGRAM_INTERVAL",
|
||||
env = "CONDUWUIT_RUNTIME_HISTOGRAM_INTERVAL",
|
||||
default_value = "25"
|
||||
)]
|
||||
pub(crate) worker_histogram_interval: u64,
|
||||
|
||||
/// Set the histogram bucket count (tokio_unstable). Default is 20.
|
||||
#[arg(long, hide(true), env = "CONDUWUIT_RUNTIME_HISTOGRAM_BUCKETS", default_value = "20")]
|
||||
#[arg(
|
||||
long,
|
||||
hide(true),
|
||||
env = "CONTINUWUITY_RUNTIME_HISTOGRAM_BUCKETS",
|
||||
env = "CONDUWUIT_RUNTIME_HISTOGRAM_BUCKETS",
|
||||
default_value = "20"
|
||||
)]
|
||||
pub(crate) worker_histogram_buckets: usize,
|
||||
|
||||
/// Toggles worker affinity feature.
|
||||
#[arg(
|
||||
long,
|
||||
hide(true),
|
||||
env = "CONTINUWUITY_RUNTIME_WORKER_AFFINITY",
|
||||
env = "CONDUWUIT_RUNTIME_WORKER_AFFINITY",
|
||||
action = ArgAction::Set,
|
||||
num_args = 0..=1,
|
||||
@@ -99,6 +112,7 @@ pub(crate) struct Args {
|
||||
#[arg(
|
||||
long,
|
||||
hide(true),
|
||||
env = "CONTINUWUITY_RUNTIME_GC_ON_PARK",
|
||||
env = "CONDUWUIT_RUNTIME_GC_ON_PARK",
|
||||
action = ArgAction::Set,
|
||||
num_args = 0..=1,
|
||||
|
||||
Reference in New Issue
Block a user