Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
area363 committed Jul 16, 2024
1 parent 36a06fa commit 015823b
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions NineChronicles.DataProvider/RenderSubscriber.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1616,21 +1616,6 @@ private void ProcessAgentAvatarData(ActionEvaluation<ActionBase> ev)
{
try
{
AvatarState avatarState;
try
{
avatarState = outputState.GetAvatarState(avatarAddress);
}
catch (Exception)
{
avatarState = outputState.GetAvatarState(address: avatarAddress);
}

if (avatarState == null)
{
continue;
}

var runeSlotStateAddress = RuneSlotState.DeriveAddress(avatarAddress, BattleType.Adventure);
var runeSlotState = outputState.TryGetLegacyState(runeSlotStateAddress, out List rawRuneSlotState)
? new RuneSlotState(rawRuneSlotState)
Expand All @@ -1647,7 +1632,7 @@ private void ProcessAgentAvatarData(ActionEvaluation<ActionBase> ev)
}

var end = DateTimeOffset.UtcNow;
Log.Debug("[DataProvider] Stored Avatar Information in block #{index}. Time Taken: {time} ms.", ev.BlockIndex, (end - start).Milliseconds);
Log.Debug("[DataProvider] Stored Agent Avatar Information in block #{index}. Time Taken: {time} ms.", ev.BlockIndex, (end - start).Milliseconds);
}
}
}
Expand Down

0 comments on commit 015823b

Please sign in to comment.