Skip to content

Commit ec3b385

Browse files
Code comment cleanup.
1 parent 6e68b01 commit ec3b385

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

OptimizelySDKEventDispatcher/OptimizelySDKEventDispatcher/OPTLYEventDispatcher.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ - (void)setupNetworkTimer:(void(^)())completion
131131
// The network timer should be reset when:
132132
// - max retry time has been reached
133133
// - all saved event queue are empty and event is successfully sent
134-
// Also kept timer invalidation on the main thread.
134+
// The timer must be disabled on the main thread.
135135
- (void)disableNetworkTimer:(void(^)())completion {
136136

137137
if (![self isTimerEnabled]) {
@@ -223,6 +223,7 @@ - (void)dispatchEvent:(nonnull NSDictionary *)event
223223

224224
# pragma mark - Save Events
225225

226+
// save events only when the event dispatch fails or can't be completed at the current moment
226227
- (void)saveEvent:(NSDictionary *)params
227228
eventType:(OPTLYDataStoreEventType)eventType
228229
error:(NSError **)error {

OptimizelySDKEventDispatcher/OptimizelySDKEventDispatcherTests/OPTLYEventDispatcherTest.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ - (void)testMaxDispatchBackoffRetriesAndPowerOf2 {
217217
}
218218
__weak typeof(self) weakSelf = self;
219219
for (NSInteger i = 1; i < numberOfRetries; ++i) {
220-
//NSLog(@"Dispatch attempt - %ld. Dispatch event call - %u", i, eventDispatcher.flushEventCall);
221220
[eventDispatcher flushEvents:^{
222221
NSLog(@"************ i - %ld, backoff retry - %u, dispatch call - %u", i, eventDispatcher.flushEventBackoffRetries, eventDispatcher.flushEventCall);
223222
// check that the dispatch attempt is only made at power of 2 attempt count

0 commit comments

Comments
 (0)