fix(#2560): use from_mins for migration timeouts to satisfy clippy pedantic

This commit is contained in:
damocles 2026-07-17 15:40:35 +02:00
commit 6bf839cfe4

View file

@ -27,8 +27,8 @@ const KILL_SWITCH: &str = "HIVE_SKIP_META_MIGRATION";
/// stuck migration degrades to a logged warning instead of a hung boot. /// stuck migration degrades to a logged warning instead of a hung boot.
/// Git ops are quick; `nixos-container update` can legitimately trigger a /// Git ops are quick; `nixos-container update` can legitimately trigger a
/// nix build, so it gets a much longer budget. /// nix build, so it gets a much longer budget.
const GIT_TIMEOUT: Duration = Duration::from_secs(120); const GIT_TIMEOUT: Duration = Duration::from_mins(2);
const CONTAINER_TIMEOUT: Duration = Duration::from_secs(600); const CONTAINER_TIMEOUT: Duration = Duration::from_mins(10);
/// Substring that identifies the *current* agent flake boilerplate. /// Substring that identifies the *current* agent flake boilerplate.
/// Bumped whenever the template changes so the startup migration /// Bumped whenever the template changes so the startup migration