From e30dfd5e5abb96cdc89b80f1d085466e55c347e0 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Wed, 3 Dec 2025 11:38:07 +0000 Subject: remove depricated audit mode label ci / production ~> isolated / shared --- grasp-audit/src/bin/grasp-audit.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'grasp-audit/src/bin') diff --git a/grasp-audit/src/bin/grasp-audit.rs b/grasp-audit/src/bin/grasp-audit.rs index 0d88bce..08a92c7 100644 --- a/grasp-audit/src/bin/grasp-audit.rs +++ b/grasp-audit/src/bin/grasp-audit.rs @@ -56,14 +56,18 @@ async fn main() -> Result<()> { spec, git_data_dir, } => { - #[allow(deprecated)] let mut config = match mode.as_str() { "shared" => AuditConfig::shared(), "isolated" => AuditConfig::isolated(), // Backwards compatibility aliases - "ci" => AuditConfig::ci(), - "production" => AuditConfig::production(), - _ => return Err(anyhow!("Invalid mode: {}. Use 'shared' or 'isolated'", mode)), + "ci" => AuditConfig::isolated(), + "production" => AuditConfig::shared(), + _ => { + return Err(anyhow!( + "Invalid mode: {}. Use 'shared' or 'isolated'", + mode + )) + } }; // Audit needs to create events to test the relay, so disable read-only mode -- cgit v1.2.3