diff --git a/Core/Cleipnir.ResilientFunctions/Messaging/EventSource.cs b/Core/Cleipnir.ResilientFunctions/Messaging/EventSource.cs index e8b3b908..97542b3b 100644 --- a/Core/Cleipnir.ResilientFunctions/Messaging/EventSource.cs +++ b/Core/Cleipnir.ResilientFunctions/Messaging/EventSource.cs @@ -18,7 +18,6 @@ public class EventSource : IReactiveChain, IDisposable private readonly TimeSpan _pullFrequency; private readonly ISerializer _eventSerializer; - private readonly HashSet _idempotencyKeys = new(); private int _deliverOutstandingEventsIteration; private EventProcessingException? _thrownException; @@ -101,12 +100,6 @@ private async Task DeliverOutstandingEvents(bool deliverDespiteNoActiveSubscript var storedEvents = await _eventsSubscription!.PullNewEvents(); foreach (var storedEvent in storedEvents) { - if (storedEvent.IdempotencyKey != null) - if (_idempotencyKeys.Contains(storedEvent.IdempotencyKey)) - continue; - else - _idempotencyKeys.Add(storedEvent.IdempotencyKey); - var deserialized = _eventSerializer .DeserializeEvent(storedEvent.EventJson, storedEvent.EventType);