diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-11-13 17:18:35 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-11-13 22:08:56 +0000 |
| commit | 82c7a95f6e9aa266d2f0d2035a0ce4f1715b62ad (patch) | |
| tree | 9de47f91a6157f9361b2bf28618d89873a55227a /src/bin/ngit/sub_commands/sync.rs | |
| parent | ebab8d2aa487d1814e802c5a51b19d4bb1592e01 (diff) | |
feat(list): make list async and include sync report inline
copy relay fetching approach to async and reporting
Diffstat (limited to 'src/bin/ngit/sub_commands/sync.rs')
| -rw-r--r-- | src/bin/ngit/sub_commands/sync.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/bin/ngit/sub_commands/sync.rs b/src/bin/ngit/sub_commands/sync.rs index d84feb6..daebb1b 100644 --- a/src/bin/ngit/sub_commands/sync.rs +++ b/src/bin/ngit/sub_commands/sync.rs | |||
| @@ -77,8 +77,14 @@ pub async fn launch(args: &SubCommandArgs) -> Result<()> { | |||
| 77 | 77 | ||
| 78 | let term = console::Term::stderr(); | 78 | let term = console::Term::stderr(); |
| 79 | 79 | ||
| 80 | let remote_states = | 80 | let remote_states = list_from_remotes( |
| 81 | list_from_remotes(&term, &git_repo, &repo_ref.git_server, &decoded_nostr_url); | 81 | &term, |
| 82 | &git_repo, | ||
| 83 | &repo_ref.git_server, | ||
| 84 | &decoded_nostr_url, | ||
| 85 | Some(&nostr_state), | ||
| 86 | ) | ||
| 87 | .await; | ||
| 82 | 88 | ||
| 83 | let missing_refs = | 89 | let missing_refs = |
| 84 | fetch_missing_refs(&git_repo, &nostr_state, &remote_states, &decoded_nostr_url); | 90 | fetch_missing_refs(&git_repo, &nostr_state, &remote_states, &decoded_nostr_url); |