summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/BackgroundService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI.Web/BackgroundService.cs')
-rw-r--r--src/SMAPI.Web/BackgroundService.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/SMAPI.Web/BackgroundService.cs b/src/SMAPI.Web/BackgroundService.cs
index 2dd3b921..dfd2c1b9 100644
--- a/src/SMAPI.Web/BackgroundService.cs
+++ b/src/SMAPI.Web/BackgroundService.cs
@@ -50,11 +50,11 @@ namespace StardewModdingAPI.Web
// set startup tasks
BackgroundJob.Enqueue(() => BackgroundService.UpdateWikiAsync());
- BackgroundJob.Enqueue(() => BackgroundService.RemoveStaleMods());
+ BackgroundJob.Enqueue(() => BackgroundService.RemoveStaleModsAsync());
// set recurring tasks
RecurringJob.AddOrUpdate(() => BackgroundService.UpdateWikiAsync(), "*/10 * * * *"); // every 10 minutes
- RecurringJob.AddOrUpdate(() => BackgroundService.RemoveStaleMods(), "0 * * * *"); // hourly
+ RecurringJob.AddOrUpdate(() => BackgroundService.RemoveStaleModsAsync(), "0 * * * *"); // hourly
return Task.CompletedTask;
}
@@ -84,9 +84,10 @@ namespace StardewModdingAPI.Web
}
/// <summary>Remove mods which haven't been requested in over 48 hours.</summary>
- public static async Task RemoveStaleMods()
+ public static Task RemoveStaleModsAsync()
{
BackgroundService.ModCache.RemoveStaleMods(TimeSpan.FromHours(48));
+ return Task.CompletedTask;
}