Former-commit-id: ba065e557c6309cfd7a743db5b52544ee57c3469
This commit is contained in:
Joshua Barretto 2019-05-16 22:04:16 +01:00
parent 71089e8c31
commit b14909f5a8

View File

@ -241,7 +241,8 @@ impl Client {
// If chunks are taking too long, assume they're no longer pending
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)