Skip to content

feat: add backoff wrapper + ai generated docs #2890

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jul 25, 2025
Merged

Conversation

keyvankhademi
Copy link
Contributor

Summary

feat: add backoff wrapper + ai generated docs

Rationale

missing improvements from previous PR

How has this been tested?

  • Current tests cover my changes
  • Added new tests
  • Manually tested the code

Ran the example

Copy link

vercel bot commented Jul 23, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api-reference ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 25, 2025 5:09pm
component-library ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 25, 2025 5:09pm
developer-hub ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 25, 2025 5:09pm
entropy-debugger ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 25, 2025 5:09pm
entropy-explorer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 25, 2025 5:09pm
insights ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 25, 2025 5:09pm
proposals ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 25, 2025 5:09pm
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 25, 2025 5:09pm

//!
//! ## Basic Usage
//!
//! ```rust,ignore
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's better to have an example that at least compiles and use no_run instead of ignore.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried different codes that compiles, it all looks bad and defeats the purpose of showing in a high level how it works.
I'll keep this for now.

Comment on lines 276 to 281
/// This initializes the builder with sensible defaults for production use:
/// - Default Pyth Lazer endpoints
/// - 4 WebSocket connections
/// - 5-second timeout
/// - Default exponential backoff settings
/// - Default channel capacity
Copy link
Contributor

Choose a reason for hiding this comment

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

Doesn't make sense to list the last two without providing actual values.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed them.

@keyvankhademi keyvankhademi merged commit ece3c3d into main Jul 25, 2025
11 checks passed
@keyvankhademi keyvankhademi deleted the impr-client branch July 25, 2025 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants