Skip to content

Commit

Permalink
Forward resourceTimeout to datafileHandler (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
ffittschen authored and jaeopt committed May 21, 2020
1 parent c9c68f1 commit e27df94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Optimizely/OptimizelyClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ open class OptimizelyClient: NSObject {
/// - resourceTimeout: timeout for datafile download (optional)
/// - completion: callback when initialization is completed
public func start(resourceTimeout: Double? = nil, completion: ((OptimizelyResult<Data>) -> Void)? = nil) {
datafileHandler?.downloadDatafile(sdkKey: sdkKey, returnCacheIfNoChange: true) { result in
datafileHandler?.downloadDatafile(sdkKey: sdkKey, returnCacheIfNoChange: true, resourceTimeoutInterval: resourceTimeout) { result in
switch result {
case .success(let datafile):
guard let datafile = datafile else {
Expand Down

0 comments on commit e27df94

Please sign in to comment.