diff --git a/src/main.rs b/src/main.rs index 3a5b688..263ddcc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -40,9 +40,10 @@ fn begin(cache: State, msg: Json) -> Json, + msg: Json, +) -> String { + cache_state + .lock() + .expect("wanted cache to be lockable") + .remove(&msg.game.id); + + "OK".to_string() +} + #[post("/move", format = "json", data = "")] fn make_move( cache_state: State,