Skip to content

Commit

Permalink
Merge branch 'local-evaluation' into update-expclient-with-storage-an…
Browse files Browse the repository at this point in the history
…d-flag
  • Loading branch information
tyiuhc authored Sep 20, 2023
2 parents 2fa7ecb + 3113012 commit 681edc3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,14 @@ internal class DefaultExperimentClient internal constructor(
private val apiKey: String,
private val config: ExperimentConfig,
private val httpClient: OkHttpClient,
private val storage: Storage,
storage: Storage,
private val executorService: ScheduledExecutorService,
) : ExperimentClient {

private var user: ExperimentUser? = null

private val flagApi = SdkFlagApi(this.apiKey, this.config.serverUrl, httpClient)

private val variants: LoadStoreCache<Variant> = getVariantStorage(
this.apiKey,
this.config.instanceName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ internal fun transformVariantFromStorage(storageValue: Any?): Variant? {

Variant(key = key, value = value, payload = payload, expKey = experimentKey, metadata = metadata)
}

else -> null
}
}
Expand Down

0 comments on commit 681edc3

Please sign in to comment.