Add println

This commit is contained in:
2025-04-18 11:00:59 +02:00
parent 218a73a1e0
commit cee9bc483b

View File

@@ -69,6 +69,7 @@ async fn add_rating(
} }
async fn cache_rating_only(Path(rating): Path<i64>, State(shared): State<SharedState>) -> Response { async fn cache_rating_only(Path(rating): Path<i64>, State(shared): State<SharedState>) -> Response {
eprintln!("Received rating: {rating}");
shared.rating.store(rating, Ordering::Relaxed); shared.rating.store(rating, Ordering::Relaxed);
(StatusCode::OK, "Done.").into_response() (StatusCode::OK, "Done.").into_response()
} }