Skip to content

Conversation

@kaushalkapasi
Copy link
Contributor

  • fix: use a cached config (if available), if identify user request fails

} catch (t: Throwable) {
// In the event that the config request fails (i.e. the device is offline)
// Fallback to using a Cached Configuration for the User if available
useCachedConfigForUser(updatedUser)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add a debug log above it too, makes it clearer that it's using the cached config because of the config failing

@kaushalkapasi kaushalkapasi force-pushed the fix-use-cached-config-on-identify-failure branch from f7edac2 to 1f9849f Compare June 9, 2025 14:27
@kaushalkapasi kaushalkapasi requested a review from jsalaber June 9, 2025 14:34
@kaushalkapasi kaushalkapasi merged commit 26c07eb into main Jun 9, 2025
5 checks passed
@kaushalkapasi kaushalkapasi deleted the fix-use-cached-config-on-identify-failure branch June 9, 2025 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants