Skip to content

Commit

Permalink
Update tremor-interceptor/src/postprocessor/gelf_chunking.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Heinz N. Gies <[email protected]>
Signed-off-by: Bharat Kumar Jain <[email protected]>
  • Loading branch information
BharatKJain and Licenser authored Oct 16, 2024
1 parent 5591928 commit 6f26c59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tremor-interceptor/src/postprocessor/gelf_chunking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ impl Postprocessor for Gelf {

fn finish(&mut self, data: Option<&[u8]>) -> anyhow::Result<Vec<Vec<u8>>> {
if let Some(data) = data {
let current_epoch_timestamp = SystemTime::now().duration_since(UNIX_EPOCH).unwrap().as_nanos() as u64;
let current_epoch_timestamp = SystemTime::now().duration_since(UNIX_EPOCH)?.as_nanos() as u64;
Ok(self.encode_gelf(data, current_epoch_timestamp)?)
} else {
Ok(vec![])
Expand Down

0 comments on commit 6f26c59

Please sign in to comment.