From e861eafe18f1291b5ea223c75e1cd574761a58bd Mon Sep 17 00:00:00 2001 From: sophie Date: Tue, 9 Jan 2024 18:03:31 +0900 Subject: [PATCH] Fix accordingly after reverting unwanted code added after 0.15.2 tag --- CHANGELOG.md | 7 +++++++ src/ingest.rs | 4 ++-- src/publish.rs | 1 - 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 51b6720..20653a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ file is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] + +### Changed + +- Remove `post_body` field in `Http` + ## [0.15.2+tis.0.0.1] - 2024-01-08 ### Added @@ -224,6 +230,7 @@ Versioning](https://semver.org/spec/v2.0.0.html). - Move from giganto +[Unreleased]: https://github.com/aicers/giganto-client/compare/0.15.2+tis.0.0.1...tis [0.15.2+tis.0.0.1]: https://github.com/aicers/giganto-client/compare/0.15.1...0.15.2+tis.0.0.1 [0.15.2]: https://github.com/aicers/giganto-client/compare/0.15.1...0.15.2 [0.15.1]: https://github.com/aicers/giganto-client/compare/0.15.0...0.15.1 diff --git a/src/ingest.rs b/src/ingest.rs index 73b9967..b4742d9 100644 --- a/src/ingest.rs +++ b/src/ingest.rs @@ -195,7 +195,7 @@ mod tests { let nsec = 123; let ndt = NaiveDateTime::from_timestamp_opt(sec, nsec).unwrap(); - let ts = ndt.timestamp_nanos(); + let ts = ndt.timestamp_nanos_opt().unwrap(); let ts_fmt = super::convert_time_format(ts); assert_eq!(ts_fmt, "2.000000123"); @@ -203,7 +203,7 @@ mod tests { let nsec = 0; let ndt = NaiveDateTime::from_timestamp_opt(sec, nsec).unwrap(); - let ts = ndt.timestamp_nanos(); + let ts = ndt.timestamp_nanos_opt().unwrap(); let ts_fmt = super::convert_time_format(ts); assert_eq!(ts_fmt, "-1.000000000"); } diff --git a/src/publish.rs b/src/publish.rs index 3760e4f..336e0dc 100644 --- a/src/publish.rs +++ b/src/publish.rs @@ -700,7 +700,6 @@ mod tests { orig_mime_types: Vec::new(), resp_filenames: Vec::new(), resp_mime_types: Vec::new(), - post_body: Vec::new(), }; let raw_event = bincode::serialize(&http).unwrap(); let source = bincode::serialize(&"hello").unwrap();