GeneratorConsumer: upsert through UpsertAsync

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-28 00:01:41 +01:00
commit e3fe3a32f6

View file

@ -43,7 +43,7 @@ foreach (var (type, value) in documents)
using (var cache = new CultCache(registry))
{
cache.AddBackingStore(new SingleFileMessagePackBackingStore(path));
cache.Upsert(type, value, new CultRecordKey("k"));
cache.UpsertAsync(type, value, new CultRecordKey("k")).GetAwaiter().GetResult();
cache.FlushAllBackingStores();
}
using var reopened = new CultCache(registry);