diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-02-26 12:24:40 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-02-26 15:26:16 +0000 |
| commit | dc6c20d29ea4456eee1dbc2aa8757fe955d1afc7 (patch) | |
| tree | 6230652be620a4647ffe1ad26c654b61f36cedac /src/bin/ngit/sub_commands/repo | |
| parent | 237ab4ebcdc5bf58f98958db5375d56baf8046a0 (diff) | |
fix: report per-relay publish results in send_events summary
Change send_events() return type from Result<()> to
Result<Vec<(String, bool)>> so callers can inspect which relays
accepted events. Update the finish message to show
"Published to X/N relays (failed: ...)" instead of the unconditional
"Published ... to nostr relays".
Diffstat (limited to 'src/bin/ngit/sub_commands/repo')
| -rw-r--r-- | src/bin/ngit/sub_commands/repo/accept.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/ngit/sub_commands/repo/accept.rs b/src/bin/ngit/sub_commands/repo/accept.rs index 5564b77..eaea107 100644 --- a/src/bin/ngit/sub_commands/repo/accept.rs +++ b/src/bin/ngit/sub_commands/repo/accept.rs | |||
| @@ -212,7 +212,7 @@ async fn accept_with_grasp_servers( | |||
| 212 | 212 | ||
| 213 | client.set_signer(signer.clone()).await; | 213 | client.set_signer(signer.clone()).await; |
| 214 | 214 | ||
| 215 | send_events( | 215 | let _ = send_events( |
| 216 | client, | 216 | client, |
| 217 | Some(git_repo.get_path()?), | 217 | Some(git_repo.get_path()?), |
| 218 | vec![repo_event], | 218 | vec![repo_event], |