diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-12-03 11:38:07 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-12-03 11:38:07 +0000 |
| commit | e30dfd5e5abb96cdc89b80f1d085466e55c347e0 (patch) | |
| tree | c12c1d54d30f0541c9689acbcb3b64d54cc8b996 /grasp-audit/src/bin | |
| parent | 2eaff5b79fed364d5eba5eb38e4b7bf76326884d (diff) | |
remove depricated audit mode label ci / production ~> isolated / shared
Diffstat (limited to 'grasp-audit/src/bin')
| -rw-r--r-- | grasp-audit/src/bin/grasp-audit.rs | 12 |
1 files changed, 8 insertions, 4 deletions
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<()> { | |||
| 56 | spec, | 56 | spec, |
| 57 | git_data_dir, | 57 | git_data_dir, |
| 58 | } => { | 58 | } => { |
| 59 | #[allow(deprecated)] | ||
| 60 | let mut config = match mode.as_str() { | 59 | let mut config = match mode.as_str() { |
| 61 | "shared" => AuditConfig::shared(), | 60 | "shared" => AuditConfig::shared(), |
| 62 | "isolated" => AuditConfig::isolated(), | 61 | "isolated" => AuditConfig::isolated(), |
| 63 | // Backwards compatibility aliases | 62 | // Backwards compatibility aliases |
| 64 | "ci" => AuditConfig::ci(), | 63 | "ci" => AuditConfig::isolated(), |
| 65 | "production" => AuditConfig::production(), | 64 | "production" => AuditConfig::shared(), |
| 66 | _ => return Err(anyhow!("Invalid mode: {}. Use 'shared' or 'isolated'", mode)), | 65 | _ => { |
| 66 | return Err(anyhow!( | ||
| 67 | "Invalid mode: {}. Use 'shared' or 'isolated'", | ||
| 68 | mode | ||
| 69 | )) | ||
| 70 | } | ||
| 67 | }; | 71 | }; |
| 68 | 72 | ||
| 69 | // Audit needs to create events to test the relay, so disable read-only mode | 73 | // Audit needs to create events to test the relay, so disable read-only mode |