-
Notifications
You must be signed in to change notification settings - Fork 169
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
Add query_account
to jetstream::Context
#528
Conversation
132358e
to
e2c365f
Compare
async-nats/src/jetstream/account.rs
Outdated
#[derive(Debug, Default, Serialize, Deserialize, Clone, Copy, PartialEq, Eq)] | ||
pub struct Limits { | ||
/// Maximum memory for this account (-1 if no limit) | ||
pub max_memory: i64, |
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.
Wouldn't it be more Rusty if we would map -1
to None
?
Same for all those 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.
Wouldn't it be more Rusty if we would map -1 to None?
It would.
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.
Is that an agreement to change it to that 😄 ?
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.
Yeah I'll fix it up today along with documenting the rest of the fields, these were carried over from the old definition.
e2c365f
to
41298dc
Compare
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.
LGTM!
See nats-io/nats-architecture-and-design#120