Skip to content

Commit

Permalink
Revert canForward check from flushObservabilityEvents function
Browse files Browse the repository at this point in the history
  • Loading branch information
rcrahul43 committed Apr 19, 2024
1 parent e22d2b8 commit 0050e41
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ private extension DefaultEventBatchProcessor {

func flushObservabilityEvents() {
#if TRACKER_ENABLED
if let events = Tracker.sharedInstance?.sendHealthEventsToInternalParty(), !events.isEmpty {
if eventBatchCreator.canForward, let events = Tracker.sharedInstance?.sendHealthEventsToInternalParty(), !events.isEmpty {
eventBatchCreator.forward(with: events)
}
#endif
Expand Down

0 comments on commit 0050e41

Please sign in to comment.