Skip to content

Commit

Permalink
remove pool size 1 during sync
Browse files Browse the repository at this point in the history
  • Loading branch information
soywod committed Sep 6, 2024
1 parent fc5a999 commit 1199b40
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/account/command/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ impl SynchronizeAccountCommand {
"Estimated patch length for account {account_name} to be synchronized: {hunks_count}\n"
))?;
} else if printer.is_json() {
sync_builder.with_pool_size(1).sync().await?;
sync_builder.sync().await?;
printer.out(format!("Account {account_name} successfully synchronized!"))?;
} else {
let multi = MultiProgress::new();
Expand All @@ -244,7 +244,6 @@ impl SynchronizeAccountCommand {
main_progress.tick();

let report = sync_builder
.with_pool_size(1)
.with_handler(move |evt| {
match evt {
SyncEvent::ListedAllFolders => {
Expand Down

0 comments on commit 1199b40

Please sign in to comment.