mirror of
https://github.com/gitui-org/gitui
synced 2026-05-22 16:38:28 +00:00
less unneeded sleep
This commit is contained in:
parent
3a1c1a6b99
commit
777d362dfc
1 changed files with 1 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue