-
Notifications
You must be signed in to change notification settings - Fork 8
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
fix: migration dependency : chrono -> time-rs #194
Conversation
Codecov Report
@@ Coverage Diff @@
## main #194 +/- ##
==========================================
+ Coverage 87.41% 87.48% +0.06%
==========================================
Files 206 206
Lines 12247 12319 +72
==========================================
+ Hits 10706 10777 +71
- Misses 1541 1542 +1
Continue to review full report at Codecov.
|
[nits]
I edited the title. |
pub fn panes_to_dispatch( | ||
&mut self, | ||
rowtime: SpringTimestamp, | ||
) -> Result<impl Iterator<Item = &mut P>, SpringError> { |
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.
[nits] We can use crate::api::error::Result
here
@@ -74,10 +79,10 @@ where | |||
self.panes.clear() | |||
} | |||
|
|||
fn generate_panes_if_not_exist(&mut self, rowtime: SpringTimestamp) { | |||
fn generate_panes_if_not_exist(&mut self, rowtime: SpringTimestamp) -> Result<(), SpringError> { |
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.
[nits] We can use crate::api::error::Result here
fn valid_open_at_s( | ||
&self, | ||
rowtime: SpringTimestamp, | ||
) -> Result<Vec<SpringTimestamp>, SpringError> { |
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.
[nits] We can use crate::api::error::Result here
we still use chrono via simple-server dependencies
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.
@@ -53,6 +53,7 @@ ignore = [ | |||
# temporary turn off : [Potential segfault in the time crate](https://rustsec.org/advisories/RUSTSEC-2020-0071) | |||
# tracking issue : https://github.com/SpringQL/SpringQL/issues/173 | |||
"RUSTSEC-2020-0071", | |||
|
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 heard from @kazuk we cannot remove it for now because simple-server
crate depends on chrono.
I will fix the dependency and remove the line here.
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.
💯 🕙
@kazuk ah, sorry. I found the test with rust 1.56.0 failed.
I will do the following:
|
Issue number and link
Fixes: #191
Describe your changes
chrono
time
Checklist before requesting a review
## [Unreleased]
section inCHANGELOG.md
following keep a changelog syntax (bugfix/feature)