diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-02-13 08:10:50 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-02-13 08:10:50 +0000 |
| commit | 64f1cf4f8e021f52f8e7df75e62f10d32d9fa101 (patch) | |
| tree | b47f3cf4e213642ccd281b809dbb990968fb34fc /src/bin/git_remote_nostr/main.rs | |
| parent | 990ac9fb6d4b2e862614632f1f17a6f671c72f5b (diff) | |
fix: clear progress reporters on successful completion
Progress reporters were not being cleared after successful operations,
leaving progress bars visible in the terminal output. Now they are
properly cleared when all operations complete without errors.
Diffstat (limited to 'src/bin/git_remote_nostr/main.rs')
| -rw-r--r-- | src/bin/git_remote_nostr/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/git_remote_nostr/main.rs b/src/bin/git_remote_nostr/main.rs index 618aff7..b26981d 100644 --- a/src/bin/git_remote_nostr/main.rs +++ b/src/bin/git_remote_nostr/main.rs | |||
| @@ -157,7 +157,7 @@ async fn fetching_with_report_for_helper( | |||
| 157 | ) -> Result<()> { | 157 | ) -> Result<()> { |
| 158 | let term = console::Term::stderr(); | 158 | let term = console::Term::stderr(); |
| 159 | term.write_line("nostr: fetching...")?; | 159 | term.write_line("nostr: fetching...")?; |
| 160 | let (relay_reports, _progress_reporter) = client | 160 | let (relay_reports, progress_reporter) = client |
| 161 | .fetch_all( | 161 | .fetch_all( |
| 162 | Some(git_repo_path), | 162 | Some(git_repo_path), |
| 163 | Some(trusted_maintainer_coordinate), | 163 | Some(trusted_maintainer_coordinate), |
| @@ -170,5 +170,6 @@ async fn fetching_with_report_for_helper( | |||
| 170 | } else { | 170 | } else { |
| 171 | term.write_line(&format!("nostr updates: {report}"))?; | 171 | term.write_line(&format!("nostr updates: {report}"))?; |
| 172 | } | 172 | } |
| 173 | progress_reporter.clear()?; | ||
| 173 | Ok(()) | 174 | Ok(()) |
| 174 | } | 175 | } |