-
Notifications
You must be signed in to change notification settings - Fork 600
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
refactor: extract boolean env var parse #1553
Conversation
Signed-off-by: Bugen Zhao <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #1553 +/- ##
=========================================
Coverage 69.61% 69.62%
Complexity 2766 2766
=========================================
Files 1038 1039 +1
Lines 90816 90822 +6
Branches 1790 1790
=========================================
+ Hits 63226 63233 +7
+ Misses 26699 26698 -1
Partials 891 891
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
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 🤣
Signed-off-by: Bugen Zhao <[email protected]>
static ref IMPLICIT_FLUSH: bool = | ||
std::env::var("RW_IMPLICIT_FLUSH").unwrap_or_else(|_| { "1".to_string() }) == "1"; | ||
pub(super) static ref IMPLICIT_FLUSH: bool = env_var_is_true("RW_IMPLICIT_FLUSH"); |
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.
The old default value is true, but now is false?
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.
Yep. It should be false. 🤪
Signed-off-by: Bugen Zhao <[email protected]>
Signed-off-by: Bugen Zhao [email protected]
What's changed and what's your intention?
As title.
Checklist
Refer to a related PR or issue link (optional)