Skip to content

Commit 742544e

Browse files
make event dispatch interval every minute.
1 parent 155c5ea commit 742544e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This modernized version of the SDK is meant to replace the Objective-C SDK.
1010
### New Features
1111
* By default the datafile handler does updates every 10 minutes when the application is in the foreground. To disable this, set the periodicUpdateInterval to zero. If you do allow for polling, the project will update automatically when a new datafile change is received.
1212
* On top of the above functionality, the developer may register for a datafile change notification. This notification will be called anytime a new datafile is downloaded to cache and is used to reinitialize the optimizely client automatically.
13-
* The event handler batches events and will run every 5 minutes in the foreground to send events.
13+
* The event handler batches events and will run every minute in the foreground to send events. If there are no events in the queue it will not reschedule.
1414

1515
### Bug Fixes:
1616

OptimizelySDK/Customization/DefaultEventDispatcher.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ open class DefaultEventDispatcher : BackgroundingCallbacks, OPTEventDispatcher {
2828
static let MAX_FAILURE_COUNT = 3
2929

3030
// default timerInterval
31-
var timerInterval:TimeInterval = 60 * 5 // every five minutes
31+
var timerInterval:TimeInterval = 60 * 1 // every minute
3232
// default batchSize.
3333
// attempt to send events in batches with batchSize number of events combined
3434
var batchSize:Int = 10

0 commit comments

Comments
 (0)