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/lib/login/fresh.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/lib/login/fresh.rs')
| -rw-r--r-- | src/lib/login/fresh.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/login/fresh.rs b/src/lib/login/fresh.rs index 2f6becf..e81b74a 100644 --- a/src/lib/login/fresh.rs +++ b/src/lib/login/fresh.rs | |||
| @@ -810,7 +810,7 @@ pub async fn signup_non_interactive( | |||
| 810 | save_event_in_global_cache(git_repo_path, &relay_list).await?; | 810 | save_event_in_global_cache(git_repo_path, &relay_list).await?; |
| 811 | 811 | ||
| 812 | if publish { | 812 | if publish { |
| 813 | send_events( | 813 | let _ = send_events( |
| 814 | client, | 814 | client, |
| 815 | git_repo_path, | 815 | git_repo_path, |
| 816 | vec![profile, relay_list], | 816 | vec![profile, relay_list], |