From 777d362dfc0afe3fe4193f9edc644cb8cf4813c0 Mon Sep 17 00:00:00 2001 From: Stephan Dilly Date: Tue, 31 Aug 2021 18:12:09 +0200 Subject: [PATCH] less unneeded sleep --- asyncgit/src/remote_progress.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/asyncgit/src/remote_progress.rs b/asyncgit/src/remote_progress.rs index 89792ecf..0270e926 100644 --- a/asyncgit/src/remote_progress.rs +++ b/asyncgit/src/remote_progress.rs @@ -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;