From c14b3ea0e20aa6cb8ee72c8a8e3305128b61edff Mon Sep 17 00:00:00 2001 From: Jack Rubacha Date: Wed, 18 Dec 2024 17:56:06 -0500 Subject: [PATCH] fix: remove prod mode logic from car command controller --- scylla-server/src/controllers/car_command_controller.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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();