-
Notifications
You must be signed in to change notification settings - Fork 266
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
//! | ||
//! ## Basic Usage | ||
//! | ||
//! ```rust,ignore |
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
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.
lazer/sdk/rust/client/src/client.rs
Outdated
/// 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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed them.
Summary
feat: add backoff wrapper + ai generated docs
Rationale
missing improvements from previous PR
How has this been tested?
Ran the example