mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Merge branch 'release/1.4.0' into develop
This commit is contained in:
commit
00aab0666c
7 changed files with 19 additions and 17 deletions
|
@ -261,7 +261,7 @@ export class VideosRedundancyScheduler extends AbstractScheduler {
|
|||
}
|
||||
|
||||
private async purgeCacheIfNeeded (candidateToDuplicate: CandidateToDuplicate) {
|
||||
while (this.isTooHeavy(candidateToDuplicate)) {
|
||||
while (await this.isTooHeavy(candidateToDuplicate)) {
|
||||
const redundancy = candidateToDuplicate.redundancy
|
||||
const toDelete = await VideoRedundancyModel.loadOldestLocalExpired(redundancy.strategy, redundancy.minLifetime)
|
||||
if (!toDelete) return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue