From 82c7a95f6e9aa266d2f0d2035a0ce4f1715b62ad Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Thu, 13 Nov 2025 17:18:35 +0000 Subject: feat(list): make list async and include sync report inline copy relay fetching approach to async and reporting --- src/bin/git_remote_nostr/push.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/bin/git_remote_nostr/push.rs') diff --git a/src/bin/git_remote_nostr/push.rs b/src/bin/git_remote_nostr/push.rs index 12350e7..9cf2c52 100644 --- a/src/bin/git_remote_nostr/push.rs +++ b/src/bin/git_remote_nostr/push.rs @@ -69,14 +69,18 @@ pub async fn run_push( let term = console::Term::stderr(); - let list_outputs = list_outputs.unwrap_or_else(|| { + let list_outputs = if let Some(outputs) = list_outputs { + outputs + } else { list_from_remotes( &term, git_repo, &repo_ref.git_server, &repo_ref.to_nostr_git_url(&None), + None, ) - }); + .await + }; let existing_state = { // if no state events - create from first git server listed -- cgit v1.2.3