fix: run compaction every interval (#834)

This commit is contained in:
Liu Xiaoyi
2024-12-18 02:47:40 +08:00
committed by GitHub
parent 059c3b4ebb
commit 99a1b6bbd0
4 changed files with 8 additions and 0 deletions
+1
View File
@@ -21,6 +21,7 @@ class FeedService extends BaseService<Record<string, never>> {
constructor(...args: ConstructorParameters<typeof BaseService>) {
super(...args);
this.db.setAutocompactionInterval(config.dbCleanInterval);
this.onServicesUpdated = async () => {
// Execute once only.