split into posts
This commit is contained in:
+2
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user