Fix DoS if refreshing of matview takes too long

Refreshing the view after many changes (such as the 8 million new torrents
in 2.0) can take, if the disk is a bottleneck, take longer than 60 min.
This commit is contained in:
Urban Guacamole
2020-07-19 22:38:46 +02:00
parent 4cdd60306e
commit a6715616fb

View File

@@ -45,7 +45,7 @@ func main() {
}
}
i++
go refresh(db)
refresh(db)
time.Sleep(time.Minute * 60)
}
}