Skip to content

Commit 777d362

Browse files
author
Stephan Dilly
committed
less unneeded sleep
1 parent 3a1c1a6 commit 777d362

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

asyncgit/src/remote_progress.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ use git2::PackBuilderStage;
1111
use std::{
1212
sync::{Arc, Mutex},
1313
thread::{self, JoinHandle},
14-
time::Duration,
1514
};
1615

1716
/// used for push/pull
@@ -89,8 +88,7 @@ impl RemoteProgress {
8988
.send(notification_type)
9089
.expect("Notification error");
9190

92-
//NOTE: for better debugging
93-
thread::sleep(Duration::from_millis(1));
91+
thread::yield_now();
9492

9593
if update.is_done() {
9694
break;

0 commit comments

Comments
 (0)