Skip to content

Commit

Permalink
Revert use cached sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
ipdae committed Jun 14, 2024
1 parent f60fca1 commit 0cd4244
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions NineChronicles.Headless/ArenaParticipantsWorker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -322,11 +322,10 @@ public void PrepareArenaParticipants()

var avatarAddrList = participants.AvatarAddresses;
var avatarAddrAndScoresWithRank = AvatarAddrAndScoresWithRank(avatarAddrList, currentRoundData, worldState);
var sheetCache = _cache.SheetCache;
var runeListSheet = sheetCache.GetSheet<RuneListSheet>(worldState);
var costumeStatSheet = sheetCache.GetSheet<CostumeStatSheet>(worldState);
var characterSheet = sheetCache.GetSheet<CharacterSheet>(worldState);
var runeOptionSheet = sheetCache.GetSheet<RuneOptionSheet>(worldState);
var runeListSheet = worldState.GetSheet<RuneListSheet>();
var costumeStatSheet = worldState.GetSheet<CostumeStatSheet>();
var characterSheet = worldState.GetSheet<CharacterSheet>();
var runeOptionSheet = worldState.GetSheet<RuneOptionSheet>();
var result = GetArenaParticipants(worldState, avatarAddrList, avatarAddrAndScoresWithRank, runeListSheet, costumeStatSheet, characterSheet, runeOptionSheet);
_cache.ArenaParticipantsCache.Set(cacheKey, result, TimeSpan.FromHours(1));
sw.Stop();
Expand Down

0 comments on commit 0cd4244

Please sign in to comment.