Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Conversation

@darioAnongba
Copy link
Contributor

Description

The current retry mechanism on the Esplora client using gloo_timers was failing to execute in SES environment such as MetaMask Snaps where all the objects created are immutable by default (writable: false). Because gloo_timers updates the cnt value outside of the main process, the execution crashed without being caught by the try/catch clause, causing the app to crash no matter the error handling mechanism.

This PR removes usage of gloo_timers and implements an in-house retry mechanism. It also adds the possiblity to remove the retry mechanism by setting max_retries to 0. Allowing for the retry mechanism to be implemented on the JS side.

@darioAnongba darioAnongba self-assigned this Jul 30, 2025
cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

@darioAnongba darioAnongba merged commit fd7b5be into main Jul 30, 2025
13 checks passed
@darioAnongba darioAnongba deleted the fix/retry-mechanism branch July 30, 2025 14:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants