mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +03:00
Remove debug logs
This commit is contained in:
@@ -64,19 +64,11 @@ where
|
|||||||
let mut lock = cloned.lock().await;
|
let mut lock = cloned.lock().await;
|
||||||
let limit = lock.progress_limit;
|
let limit = lock.progress_limit;
|
||||||
if limit == 1000 || limit == 0 {
|
if limit == 1000 || limit == 0 {
|
||||||
eprintln!("dbg returning {}", limit);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let last = lock.emitted_progress;
|
let last = lock.emitted_progress;
|
||||||
|
|
||||||
let next = last + ((limit as f64 - last) / lock.step_fraction);
|
let next = last + ((limit as f64 - last) / lock.step_fraction);
|
||||||
eprintln!(
|
|
||||||
"dbg step {}, last {}, next{}, limit {}",
|
|
||||||
(limit as f64 - last),
|
|
||||||
last,
|
|
||||||
next,
|
|
||||||
limit
|
|
||||||
);
|
|
||||||
|
|
||||||
if (next / 10f64).ceil() - (last / 10f64).ceil() > 0f64 {
|
if (next / 10f64).ceil() - (last / 10f64).ceil() > 0f64 {
|
||||||
(lock.f)(next.ceil() as usize);
|
(lock.f)(next.ceil() as usize);
|
||||||
@@ -117,7 +109,6 @@ where
|
|||||||
let inner = &inner.lock().await;
|
let inner = &inner.lock().await;
|
||||||
(inner.f)(progress);
|
(inner.f)(progress);
|
||||||
}
|
}
|
||||||
eprintln!("dbg setting limit {}", progress);
|
|
||||||
inner.lock().await.progress_limit = progress;
|
inner.lock().await.progress_limit = progress;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user