Skip to content

Commit

Permalink
Ignore Updates dated SystemTime::UNIX_EPOCH (#1673)
Browse files Browse the repository at this point in the history
  • Loading branch information
knoellle authored Mar 7, 2025
1 parent bed42cc commit ec6769a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/twix/src/change_buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ impl<T: PartialEq, E> ChangeBuffer<T, E> {
let maybe_datum = op(maybe_datum);
match maybe_datum {
Ok(datum) => {
self.sender.send_modify(|value| handle_update(value, datum))
if datum.timestamp != SystemTime::UNIX_EPOCH {
self.sender.send_modify(|value| handle_update(value, datum))
}
}
Err(error) => {
let _ = self.sender.send(Err(error));
Expand Down

0 comments on commit ec6769a

Please sign in to comment.