Skip to content

Commit

Permalink
chore: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
fengjiachun committed Apr 24, 2024
1 parent 0496ef5 commit 97c4a5f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/common/grpc/src/precision.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,24 +115,24 @@ mod tests {
}

#[test]
fn to_nanos_basic() {
fn test_to_nanos_basic() {
assert_eq!(Precision::Second.to_nanos(1), Some(1_000_000_000));
assert_eq!(Precision::Minute.to_nanos(1), Some(60 * 1_000_000_000));
}

#[test]
fn to_millis_basic() {
fn test_to_millis_basic() {
assert_eq!(Precision::Second.to_millis(1), Some(1_000));
assert_eq!(Precision::Minute.to_millis(1), Some(60_000));
}

#[test]
fn to_nanos_overflow() {
fn test_to_nanos_overflow() {
assert_eq!(Precision::Hour.to_nanos(i64::MAX / 100), None);
}

#[test]
fn zero_input() {
fn test_zero_input() {
assert_eq!(Precision::Second.to_nanos(0), Some(0));
assert_eq!(Precision::Minute.to_millis(0), Some(0));
}
Expand Down
2 changes: 1 addition & 1 deletion src/servers/src/row_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ pub fn write_tag(
)
}

/// Write i64 data as a field into the table data.
/// Write float64 data as a field into the table data.
pub fn write_f64(
table_data: &mut TableData,
name: impl ToString,
Expand Down

0 comments on commit 97c4a5f

Please sign in to comment.