Skip to content

Commit

Permalink
fix(events): stuck on processing calling events (#2145)
Browse files Browse the repository at this point in the history
* fix(events): stuck on processing calling events (#2144)

* ci: trigger build

---------

Co-authored-by: Vitor Hugo Schwaab <[email protected]>
  • Loading branch information
github-actions[bot] and vitorhugods authored Oct 17, 2023
1 parent a3963e9 commit 2a68af4
Showing 1 changed file with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,22 @@ class OnConfigRequest(
callingScope.launch {
callRepository.getCallConfigResponse(limit = null)
.fold({
callingLogger.i("[OnConfigRequest] - Error: $it")
// TODO: Add a better way to handle the Core Failure?
callingLogger.w("[OnConfigRequest] - Error: $it")
// We can call config_update with an error if there was a connectivity issue
// AVS will eventually ask us again for the config
// TODO(improvement): We can retry it ourselves and improve the app responsiveness.
// Maybe add a retry mechanism that listens for the network state
// Caches the config string and exposes a "invalidate" function
// That we could call when AVS requests new config.
calling.wcall_config_update(
inst = inst,
error = 1,
jsonString = ""
)
}, { config ->
calling.wcall_config_update(
inst = inst,
error = 0, // TODO(calling): http error from internal json
error = 0,
jsonString = config
)
callingLogger.i("[OnConfigRequest] - wcall_config_update()")
Expand Down

0 comments on commit 2a68af4

Please sign in to comment.