upleb.uk

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

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-02-25 13:44:21 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-02-25 13:44:21 +0000
commitd71d31d789f32aa6b077e52230055ca736799062 (patch)
treed8ef991928f75e93df6793900ec2901a64a45c7f
parent1de74ce840ab45e0d6f6aa2d75f70be8076fe476 (diff)
rename find_announcement to serves_latest_announcement and drop redundant detail from git_fetch_refs
-rw-r--r--grasp-audit/src/probe.rs19
1 files changed, 6 insertions, 13 deletions
diff --git a/grasp-audit/src/probe.rs b/grasp-audit/src/probe.rs
index 8976400..be14fc3 100644
--- a/grasp-audit/src/probe.rs
+++ b/grasp-audit/src/probe.rs
@@ -746,7 +746,7 @@ pub async fn run_probe(
746 .unwrap_or("unknown") 746 .unwrap_or("unknown")
747 .to_string(); 747 .to_string();
748 checks.push(ProbeCheck { 748 checks.push(ProbeCheck {
749 name: "find_announcement", 749 name: "serves_latest_announcement",
750 passed: true, 750 passed: true,
751 skipped: false, 751 skipped: false,
752 duration_ms: 0, 752 duration_ms: 0,
@@ -756,7 +756,7 @@ pub async fn run_probe(
756 } 756 }
757 None => { 757 None => {
758 checks.push(ProbeCheck { 758 checks.push(ProbeCheck {
759 name: "find_announcement", 759 name: "serves_latest_announcement",
760 passed: false, 760 passed: false,
761 skipped: false, 761 skipped: false,
762 duration_ms: 0, 762 duration_ms: 0,
@@ -788,13 +788,6 @@ pub async fn run_probe(
788 .unwrap_or("unknown") 788 .unwrap_or("unknown")
789 .to_string(); 789 .to_string();
790 790
791 // detail (npub/identifier) only shown in read-only mode
792 let detail_id = if read_only {
793 Some(format!("{}/{}", ann_npub, ann_id))
794 } else {
795 None
796 };
797
798 // Prefer the clone tag URL; fall back to constructing from relay 791 // Prefer the clone tag URL; fall back to constructing from relay
799 let fetch_url = ev 792 let fetch_url = ev
800 .tags 793 .tags
@@ -825,7 +818,7 @@ pub async fn run_probe(
825 passed: true, 818 passed: true,
826 skipped: false, 819 skipped: false,
827 duration_ms: step6_ms, 820 duration_ms: step6_ms,
828 detail: detail_id, 821 detail: None,
829 error: None, 822 error: None,
830 }); 823 });
831 Some(body) 824 Some(body)
@@ -836,7 +829,7 @@ pub async fn run_probe(
836 passed: false, 829 passed: false,
837 skipped: false, 830 skipped: false,
838 duration_ms: step6_ms, 831 duration_ms: step6_ms,
839 detail: detail_id, 832 detail: None,
840 error: Some(format!("HTTP {}", resp.status())), 833 error: Some(format!("HTTP {}", resp.status())),
841 }); 834 });
842 None 835 None
@@ -847,7 +840,7 @@ pub async fn run_probe(
847 passed: false, 840 passed: false,
848 skipped: false, 841 skipped: false,
849 duration_ms: step6_ms, 842 duration_ms: step6_ms,
850 detail: detail_id, 843 detail: None,
851 error: Some(e.to_string()), 844 error: Some(e.to_string()),
852 }); 845 });
853 None 846 None
@@ -858,7 +851,7 @@ pub async fn run_probe(
858 passed: false, 851 passed: false,
859 skipped: false, 852 skipped: false,
860 duration_ms: step6_ms, 853 duration_ms: step6_ms,
861 detail: detail_id, 854 detail: None,
862 error: Some("timeout".to_string()), 855 error: Some("timeout".to_string()),
863 }); 856 });
864 None 857 None