We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a45a38b commit 4e1c898Copy full SHA for 4e1c898
src/main.rs
@@ -9,7 +9,7 @@ use std::{
9
path::{Path, PathBuf},
10
process::{Command, Stdio},
11
str::FromStr,
12
- sync::atomic::{AtomicU64, Ordering},
+ sync::atomic::{AtomicUsize, Ordering},
13
time::Duration,
14
};
15
@@ -743,7 +743,7 @@ impl Remote {
743
releases: impl Fn(Branch) -> I,
744
callback: impl Copy + Fn(Branch, String) -> anyhow::Result<()>,
745
) -> anyhow::Result<()> {
746
- let count = AtomicU64::new(0);
+ let count = AtomicUsize::new(1); // Start at 1 since `fetch_add` returns the previous value.
747
let spinner = ProgressBar::new_spinner();
748
spinner.set_message("fetching channels...");
749
spinner.enable_steady_tick(Duration::from_millis(100));
0 commit comments