upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/grasp-audit/src/bin
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2025-11-28 02:30:10 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2025-11-28 02:54:34 +0000
commit15892018705b3b4ca42586174518319adc224c0e (patch)
tree7b589ec2fce2c7bc802ecf9ae7b1d91c20e4a5c7 /grasp-audit/src/bin
parent43e53b4ccd9fcebf20cc9c1bdbfe568ddd8051b9 (diff)
fix running audit with production flag
no events were allowed to be published which broke most tests
Diffstat (limited to 'grasp-audit/src/bin')
-rw-r--r--grasp-audit/src/bin/grasp-audit.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/grasp-audit/src/bin/grasp-audit.rs b/grasp-audit/src/bin/grasp-audit.rs
index b810bea..760ed55 100644
--- a/grasp-audit/src/bin/grasp-audit.rs
+++ b/grasp-audit/src/bin/grasp-audit.rs
@@ -48,11 +48,14 @@ async fn main() -> Result<()> {
48 48
49 match cli.command { 49 match cli.command {
50 Commands::Audit { relay, mode, spec, git_data_dir } => { 50 Commands::Audit { relay, mode, spec, git_data_dir } => {
51 let config = match mode.as_str() { 51 let mut config = match mode.as_str() {
52 "ci" => AuditConfig::ci(), 52 "ci" => AuditConfig::ci(),
53 "production" => AuditConfig::production(), 53 "production" => AuditConfig::production(),
54 _ => return Err(anyhow!("Invalid mode: {}. Use 'ci' or 'production'", mode)), 54 _ => return Err(anyhow!("Invalid mode: {}. Use 'ci' or 'production'", mode)),
55 }; 55 };
56
57 // Audit needs to create events to test the relay, so disable read-only mode
58 config.read_only = false;
56 59
57 // Derive relay_domain from relay URL (e.g., "ws://localhost:8081" -> "localhost:8081") 60 // Derive relay_domain from relay URL (e.g., "ws://localhost:8081" -> "localhost:8081")
58 let relay_domain = relay 61 let relay_domain = relay