Former-commit-id: ba065e557c6309cfd7a743db5b52544ee57c3469
This commit is contained in:
Joshua Barretto 2019-05-16 22:04:16 +01:00
parent 7e8d8f4471
commit 04f83732e1

View File

@ -241,7 +241,8 @@ impl Client {
// If chunks are taking too long, assume they're no longer pending // If chunks are taking too long, assume they're no longer pending
let now = Instant::now(); let now = Instant::now();
self.pending_chunks.retain(|_, created| now.duration_since(*created) < Duration::from_secs(10)); self.pending_chunks
.retain(|_, created| now.duration_since(*created) < Duration::from_secs(10));
} }
// Finish the tick, pass control back to the frontend (step 6) // Finish the tick, pass control back to the frontend (step 6)