rust/hedgewars-server/src/handlers/checker.rs
changeset 15882 f185e7367dd3
parent 15848 3d05bada4799
--- a/rust/hedgewars-server/src/handlers/checker.rs	Thu Sep 29 16:29:23 2022 +0200
+++ b/rust/hedgewars-server/src/handlers/checker.rs	Thu Sep 29 16:30:02 2022 +0200
@@ -1,16 +1,19 @@
 use log::*;
 
-use crate::core::{server::HwServer, types::ClientId};
+use crate::core::{server::HwServer, types::CheckerId};
 use hedgewars_network_protocol::messages::HwProtocolMessage;
 
 pub fn handle(
-    _server: &mut HwServer,
-    _client_id: ClientId,
+    server: &mut HwServer,
+    checker_id: CheckerId,
     _response: &mut super::Response,
     message: HwProtocolMessage,
 ) {
     match message {
         HwProtocolMessage::CheckerReady => {
+            server
+                .get_checker_mut(checker_id)
+                .map(|c| c.set_is_ready(true));
             warn!("Unimplemented")
         }
         HwProtocolMessage::CheckedOk(info) => {