chore: Log the event result inside send_event_to function

Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
Awiteb
2025-05-07 05:42:07 +00:00
parent 93c8743dc7
commit 3857753b7d
2 changed files with 14 additions and 12 deletions

View File

@@ -100,17 +100,10 @@ impl CommandRunner for AnnounceArgs {
.to_bech32()?;
let result = client
client
.send_event_to(event, relays_list.as_ref(), &write_relays)
.await?;
for relay in &result.success {
tracing::info!(relay = %relay, "Event sent successfully");
}
for (relay, reason) in &result.failed {
tracing::warn!(relay = %relay, reason = %reason, "Failed to send event");
}
println!("Event: {nevent}",);
println!("Repo Address: {}", naddr.to_bech32()?);