Skip to content

Commit

Permalink
chore: update_notifications make log message clearer
Browse files Browse the repository at this point in the history
Signed-off-by: Lachezar Lechev <[email protected]>
  • Loading branch information
elpiel committed Dec 28, 2023
1 parent 15145fd commit f0c2dcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/models/ctx/update_notifications.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub fn update_notifications<E: Env + 'static>(
let (reason, should_make_request) = match notifications.last_updated {
Some(last_updated) if last_updated + *REQUEST_LAST_VIDEOS_EVERY <= E::now() => (
format!(
"`true` since {last_updated} + {hours} <= {now}",
"`true` since {last_updated} + {hours} hours <= {now}",
hours = REQUEST_LAST_VIDEOS_EVERY.num_hours(),
now = E::now()
),
Expand All @@ -52,7 +52,7 @@ pub fn update_notifications<E: Env + 'static>(
None => ("`true` since last updated is `None`".to_string(), true),
Some(last_updated) => (
format!(
"`false` since {last_updated} + {hours} > {now}",
"`false` since {last_updated} + {hours} hours > {now}",
hours = REQUEST_LAST_VIDEOS_EVERY.num_hours(),
now = E::now()
),
Expand Down

0 comments on commit f0c2dcf

Please sign in to comment.