Skip to content

Conversation

@sug0
Copy link
Collaborator

@sug0 sug0 commented Jun 18, 2025

Describe your changes

Add backoff sleep between MASP indexer client failed requests.

Checklist before merging

  • If this PR has some consensus breaking changes, I added the corresponding breaking:: labels
    • This will require 2 reviewers to approve the changes
  • If this PR requires changes to the docs or specs, a corresponding PR is opened in the namada-docs repo
    • Relevant PR if applies:
  • If this PR affects services such as namada-indexer or namada-masp-indexer, a corresponding PR is opened in that repo
    • Relevant PR if applies:

@sug0 sug0 added enhancement New feature or request client MASP SDK labels Jun 18, 2025
@sug0 sug0 force-pushed the tiago/indexer-client-backoff-sleep branch 2 times, most recently from e4c5ded to a1c6693 Compare June 18, 2025 14:19
sug0 added a commit that referenced this pull request Jun 18, 2025
@github-actions github-actions bot added the breaking:api public API breaking change label Jun 18, 2025
Copy link
Collaborator

@batconjurer batconjurer left a comment

Choose a reason for hiding this comment

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

This works fine, but it might be nicer to rename the old trait funcs *_inner and then have the default impls on the trait wrap the *_inner funcs with the with_retry function. That way future trait impls don't make the same mistake

@sug0 sug0 force-pushed the tiago/indexer-client-backoff-sleep branch from 6165b4f to 76788fd Compare June 19, 2025 13:44
@sug0 sug0 requested a review from batconjurer June 19, 2025 13:44
Copy link
Collaborator

@batconjurer batconjurer left a comment

Choose a reason for hiding this comment

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

Looks a lot better, thanks!

@brentstone
Copy link
Collaborator

@sug0 @jurevans @mateuszjasiuk is this important to have in the near-future?

@sug0
Copy link
Collaborator Author

sug0 commented Jun 25, 2025

@brentstone I think it might help with request throttling when reverse proxying indexer queries through some CDNs

Copy link
Contributor

@mateuszjasiuk mateuszjasiuk left a comment

Choose a reason for hiding this comment

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

Works fine with namadillo

@sug0 sug0 added the merge Ready to merge - mergifyio bot will add the PR to merge queue when all checks pass label Jul 16, 2025
mergify bot added a commit that referenced this pull request Jul 16, 2025
@mergify mergify bot merged commit cc5ec95 into main Jul 16, 2025
26 checks passed
@mergify mergify bot deleted the tiago/indexer-client-backoff-sleep branch July 16, 2025 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking:api public API breaking change client enhancement New feature or request MASP merge Ready to merge - mergifyio bot will add the PR to merge queue when all checks pass SDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants