1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 08:02:55 +08:00

Add automatic clean-up call for RealmFileStore

This commit is contained in:
Dean Herbert 2021-11-25 14:12:49 +09:00
parent 204bd2b604
commit 315e126497

View File

@ -14,6 +14,7 @@ using osu.Framework.Statistics;
using osu.Game.Configuration;
using osu.Game.Input.Bindings;
using osu.Game.Models;
using osu.Game.Stores;
using Realms;
#nullable enable
@ -106,6 +107,8 @@ namespace osu.Game.Database
private void cleanupPendingDeletions()
{
new RealmFileStore(this, storage).Cleanup();
using (var realm = CreateContext())
using (var transaction = realm.BeginWrite())
{