Skip to content

Commit

Permalink
Branch to rethink persistent store changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mbruin-NR committed Feb 1, 2024
1 parent 6fdb24c commit 35876e3
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Agent/Analytics/NRMAEventManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ + (PersistentEventStore*) persistentEventStore
- (nonnull instancetype)init {
self = [super init];
if (self) {
events = [NRMAEventManager getLastSessionEventsArray];
events = [[NSMutableArray<NRMAAnalyticEventProtocol> alloc] init];
maxBufferSize = [NRMAAgentConfiguration getMaxEventBufferSize];
maxBufferTimeSeconds = [NRMAAgentConfiguration getMaxEventBufferTime];
totalAttemptedInserts = 0;
Expand Down
2 changes: 1 addition & 1 deletion Agent/Analytics/PersistentEventStore.m
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ - (nonnull instancetype)initWithFilename:(NSString *)filename
_lastSave = [NSDate new];
_dirty = NO;
_workQueue = [[NSOperationQueue alloc] init];
[_workQueue setMaxConcurrentOperationCount:1];
// [_workQueue setMaxConcurrentOperationCount:1];
}
return self;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ - (void)setUp {
});
[NRMAFlags setFeatureFlags:0];

[NRMAAnalytics clearDuplicationStores];
}

- (void)tearDown {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ - (void)setUp {
- (void)tearDown {
// Put teardown code here. This method is called after the invocation of each test method in the class.
[NRMAFlags disableFeatures:NRFeatureFlag_NewEventSystem];
[NRMAEventManager clearDuplicationStores];
}

- (void)testRetrieveEventJSON {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ @implementation NRMAURLSessionHeaderTrackingTests
- (void)setUp {
[super setUp];
[NRMAFlags enableFeatures: NRFeatureFlag_NetworkRequestEvents | NRFeatureFlag_NewEventSystem];
[NRMAAnalytics clearDuplicationStores];

[NRMAURLSessionOverride beginInstrumentation];
self.mockNewRelicInternals = [OCMockObject mockForClass:[NewRelicAgentInternal class]];
Expand Down

0 comments on commit 35876e3

Please sign in to comment.