upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/bin/ngit/sub_commands/init.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-02-26 12:24:40 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-02-26 15:26:16 +0000
commitdc6c20d29ea4456eee1dbc2aa8757fe955d1afc7 (patch)
tree6230652be620a4647ffe1ad26c654b61f36cedac /src/bin/ngit/sub_commands/init.rs
parent237ab4ebcdc5bf58f98958db5375d56baf8046a0 (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/init.rs')
-rw-r--r--src/bin/ngit/sub_commands/init.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/ngit/sub_commands/init.rs b/src/bin/ngit/sub_commands/init.rs
index 5ff57d5..021a33e 100644
--- a/src/bin/ngit/sub_commands/init.rs
+++ b/src/bin/ngit/sub_commands/init.rs
@@ -1266,7 +1266,7 @@ async fn publish_and_finalize(
1266 // Step 5: Publish events 1266 // Step 5: Publish events
1267 client.set_signer(signer).await; 1267 client.set_signer(signer).await;
1268 1268
1269 send_events( 1269 let _ = send_events(
1270 client, 1270 client,
1271 Some(git_repo_path), 1271 Some(git_repo_path),
1272 events, 1272 events,