less unneeded sleep

This commit is contained in:
Stephan Dilly 2021-08-31 18:12:09 +02:00
parent 3a1c1a6b99
commit 777d362dfc

View file

@ -11,7 +11,6 @@ use git2::PackBuilderStage;
use std::{
sync::{Arc, Mutex},
thread::{self, JoinHandle},
time::Duration,
};
/// used for push/pull
@ -89,8 +88,7 @@ impl RemoteProgress {
.send(notification_type)
.expect("Notification error");
//NOTE: for better debugging
thread::sleep(Duration::from_millis(1));
thread::yield_now();
if update.is_done() {
break;