mirror of
https://github.com/livekit/livekit.git
synced 2026-10-06 18:38:08 +00:00
GenerateCLIFlags created an Int64Flag for every time.Duration config field. Setting one through its LIVEKIT_* env var or --flag with a duration string such as "30s" (the format the YAML config and the generated help text use) made the server exit at startup with a parse error. A value without a unit was accepted and read as nanoseconds. Use a DurationFlag for these fields, so they take the same values as in the YAML config.