Add println
This commit is contained in:
@@ -69,6 +69,7 @@ async fn add_rating(
|
||||
}
|
||||
|
||||
async fn cache_rating_only(Path(rating): Path<i64>, State(shared): State<SharedState>) -> Response {
|
||||
eprintln!("Received rating: {rating}");
|
||||
shared.rating.store(rating, Ordering::Relaxed);
|
||||
(StatusCode::OK, "Done.").into_response()
|
||||
}
|
||||
|
Reference in New Issue
Block a user