diff --git a/scylla-server/src/controllers/car_command_controller.rs b/scylla-server/src/controllers/car_command_controller.rs index ad3d12c4..7c6cece7 100644 --- a/scylla-server/src/controllers/car_command_controller.rs +++ b/scylla-server/src/controllers/car_command_controller.rs @@ -26,17 +26,12 @@ pub struct ConfigRequest { pub async fn send_config_command( Path(key): Path, Query(data_query): Query, - Extension(client): Extension>>, + Extension(client): Extension>, ) -> Result<(), ScyllaError> { info!( "Sending car config with key: {}, and values: {:?}", key, data_query.data ); - // disable scylla if not prod, as there will be None mqtt client - let Some(client) = client else { - warn!("Cannot use config endpoint in dev mode!"); - return Ok(()); - }; // the protobuf calypso converts into CAN let mut payload = CommandData::new();