diff options
Diffstat (limited to 'crates/common/batcher/src/batchable.rs')
-rw-r--r-- | crates/common/batcher/src/batchable.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/common/batcher/src/batchable.rs b/crates/common/batcher/src/batchable.rs index 3585fc2f..caa926ee 100644 --- a/crates/common/batcher/src/batchable.rs +++ b/crates/common/batcher/src/batchable.rs @@ -1,6 +1,6 @@ -use chrono::{DateTime, Utc}; use std::fmt::Debug; use std::hash::Hash; +use time::OffsetDateTime; /// Implement this interface for the items that you want batched. /// No items with the same key will go in the same batch. @@ -13,5 +13,5 @@ pub trait Batchable { fn key(&self) -> Self::Key; /// The time at which this item was created. This time is used to group items into a batch. - fn event_time(&self) -> DateTime<Utc>; + fn event_time(&self) -> OffsetDateTime; } |