summaryrefslogtreecommitdiffstats
path: root/src/files.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/files.rs')
-rw-r--r--src/files.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/files.rs b/src/files.rs
index bafffc9..ccdaabf 100644
--- a/src/files.rs
+++ b/src/files.rs
@@ -547,13 +547,8 @@ impl Files {
render_fn: impl Fn(&File) -> String + Send + 'static)
-> HResult<()> {
let pending = self.pending_events.read()?.len();
- if pending > 0 {
- let pending = if pending >= 1000 {
- 1000
- } else {
- pending
- };
+ if pending > 0 {
let events = self.pending_events
.write()?
.drain(0..pending)