Skip to content

Commit

Permalink
fix: vuid assigned to odpmanager
Browse files Browse the repository at this point in the history
  • Loading branch information
muzahidul-opti committed Nov 22, 2024
1 parent 3a4be02 commit 5a4f529
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Sources/Optimizely/OptimizelyClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,15 @@ open class OptimizelyClient: NSObject {

super.init()
VuidManager.shared.configure(enable: self.sdkSettings.enableVuid)
if VuidManager.shared.enable {
self.vuid = VuidManager.shared.vuid
}
self.vuid = VuidManager.shared.vuid

self.odpManager = odpManager ?? OdpManager(sdkKey: sdkKey,
disable: sdkSettings.disableOdp,
cacheSize: sdkSettings.segmentsCacheSize,
cacheTimeoutInSecs: sdkSettings.segmentsCacheTimeoutInSecs,
timeoutForSegmentFetchInSecs: sdkSettings.timeoutForSegmentFetchInSecs,
timeoutForEventDispatchInSecs: sdkSettings.timeoutForOdpEventInSecs)

self.odpManager.vuid = self.vuid
let userProfileService = userProfileService ?? DefaultUserProfileService()
let logger = logger ?? DefaultLogger()
type(of: logger).logLevel = defaultLogLevel ?? .info
Expand Down

0 comments on commit 5a4f529

Please sign in to comment.