Skip to content

Commit

Permalink
✅ Add debug thing
Browse files Browse the repository at this point in the history
  • Loading branch information
malted committed Sep 5, 2024
1 parent e078355 commit 5dae8db
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "replit-takeout"
version = "1.7.2"
version = "1.7.4"
edition = "2021"
authors = ["Ben Dixon <malted@malted.dev>"]

Expand Down
7 changes: 5 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,14 @@ async fn get_stats(state: &rocket::State<State>) -> Option<Json<AggregateStats>>
if seconds_ago > 5 {
state.stats_cache.write().await.0 = airtable::aggregates().await.ok()?;
info!(
"Refreshing stats cache :): {:?}",
"Refreshing stats cache ({seconds_ago}) :): {:?}",
state.stats_cache.read().await.0
)
} else {
info!("Hit stats cache :): {:?}", state.stats_cache.read().await.0)
info!(
"Hit stats cache ({seconds_ago}) :): {:?}",
state.stats_cache.read().await.0
)
}

let stats = state.stats_cache.read().await.0.clone();
Expand Down

0 comments on commit 5dae8db

Please sign in to comment.