Skip to content

Commit

Permalink
Fix accordingly after reverting unwanted code added after 0.15.2 tag
Browse files Browse the repository at this point in the history
  • Loading branch information
sophie-cluml committed Jan 9, 2024
1 parent a1374b6 commit e861eaf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/ingest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,15 +195,15 @@ 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");

let sec = -1;
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");
}
Expand Down
1 change: 0 additions & 1 deletion src/publish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e861eaf

Please sign in to comment.