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
[ADDED] Ability to express the max_file_store and max_memory_store as a string (100M, etc..) #2777
Conversation
Checks the suffix of the string to create the size of the int64
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.
Sorry for the requests to change again, but I did not notice it during the first review.
Removes switch statement and uses map for finding correct multiple Also uses ParseInt instead of Atoi for getting string integer.
No problem at all, that's much cleaner than what I had initially. Thanks for the really helpful input! |
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
@hooksie1 Thank you for the contribution! |
Resolves #2754
Changes proposed in this pull request:
/cc @nats-io/core