diff --git a/ReplayBrowser/Services/ReplayParser/ReplayParserService.cs b/ReplayBrowser/Services/ReplayParser/ReplayParserService.cs
index f2f83da..db2d95f 100644
--- a/ReplayBrowser/Services/ReplayParser/ReplayParserService.cs
+++ b/ReplayBrowser/Services/ReplayParser/ReplayParserService.cs
@@ -39,10 +39,6 @@ public class ReplayParserService : IHostedService, IDisposable
/// In this case we wont just add it to the parsed replays, so it redownloads it every time.
///
private const string YamlSerializerError = "Exception during deserialization";
- ///
- /// Holds the amount of retries for parsing a replay. If it fails 3 times, it will be added to the parsed replays.
- ///
- private Dictionary _replayRetries = new();
public ReplayParserService(IConfiguration configuration, IServiceScopeFactory factory)
{
@@ -209,21 +205,7 @@ private async Task ConsumeQueue(CancellationToken token)
}
catch (Exception e)
{
- if (!_replayRetries.TryGetValue(replay, out var count))
- {
- _replayRetries.Add(replay, 1);
- count = 1;
- }
- _replayRetries[replay]++;
- Log.Error(e, "Error while parsing {Replay}. Retry count: {Count}", replay, count);
- if (count >= 3)
- {
- await AddParsedReplayToDb(replay);
- Log.Error("Failed to parse " + replay + " after 3 retries.");
- return;
- }
- if (e.Message.Contains(YamlSerializerError)) return;
-
+ Log.Error(e, "Error while parsing {Replay}", replay);
await AddParsedReplayToDb(replay);
return;
}