Skip to content

Commit

Permalink
Give the timestamp in future warning a 30 minute grace period
Browse files Browse the repository at this point in the history
  • Loading branch information
korewaChino committed Dec 4, 2024
1 parent c02374b commit 02fc504
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skystreamer-bin/src/surreal_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ impl From<skystreamer::types::Post> for SurrealPostRep {
let created_at_local = created_at.with_timezone(&now_tz);
// tracing::info!("Time: {:?}", post.created_at);
// check if time is some reason in the future
if created_at_local > now {
if created_at_local > now + chrono::Duration::minutes(30) {
tracing::warn!("Post created_at is in the future!?: {:?}", created_at);
}
SurrealPostRep {
Expand Down

0 comments on commit 02fc504

Please sign in to comment.