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/git_remote_nostr/push.rs | |
| 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/git_remote_nostr/push.rs')
| -rw-r--r-- | src/bin/git_remote_nostr/push.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/git_remote_nostr/push.rs b/src/bin/git_remote_nostr/push.rs index 06624f4..91b01b9 100644 --- a/src/bin/git_remote_nostr/push.rs +++ b/src/bin/git_remote_nostr/push.rs | |||
| @@ -298,7 +298,7 @@ async fn create_and_publish_events_and_proposals( | |||
| 298 | // TODO check whether tip of each branch pushed is on at least one git server | 298 | // TODO check whether tip of each branch pushed is on at least one git server |
| 299 | // before broadcasting the nostr state | 299 | // before broadcasting the nostr state |
| 300 | if !events.is_empty() { | 300 | if !events.is_empty() { |
| 301 | send_events( | 301 | let _relay_results = send_events( |
| 302 | client, | 302 | client, |
| 303 | Some(git_repo.get_path()?), | 303 | Some(git_repo.get_path()?), |
| 304 | events, | 304 | events, |