diff options
Diffstat (limited to 'grasp-audit/src/bin/grasp-audit.rs')
| -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 |