split into posts

This commit is contained in:
2026-05-16 23:52:20 +02:00
parent f1d5c4a4fd
commit ac99cc724a
6 changed files with 482 additions and 440 deletions
+2 -1
View File
@@ -2,6 +2,7 @@ pub mod auth;
pub mod error;
pub mod handlers;
pub mod models;
pub mod post;
use axum::{
Router,
@@ -76,7 +77,7 @@ async fn main() {
contact_rate_limit: Mutex::new(HashMap::new()),
});
handlers::posts::rebuild_posts_cache(&state).await;
post::cache::rebuild_posts_cache(&state).await;
info!(
"Posts cache primed with {} entries",
state.posts_cache.read().await.len()