Skip to content
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

Merged
merged 4 commits into from
Jun 24, 2022

Conversation

caspervonb
Copy link
Collaborator

@caspervonb caspervonb commented Jun 21, 2022

@caspervonb caspervonb force-pushed the jetstream-account branch 2 times, most recently from 132358e to e2c365f Compare June 21, 2022 18:11
@caspervonb caspervonb marked this pull request as ready for review June 21, 2022 19:40
@caspervonb caspervonb requested a review from Jarema June 21, 2022 19:40
#[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,
Copy link
Member

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.

Copy link
Collaborator Author

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.

Copy link
Member

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 😄 ?

Copy link
Collaborator Author

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.

@caspervonb caspervonb requested a review from Jarema June 23, 2022 16:30
Copy link
Member

@Jarema Jarema left a comment

Choose a reason for hiding this comment

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

LGTM!

@caspervonb caspervonb merged commit fec28ea into nats-io:main Jun 24, 2022
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.

2 participants