@@ -9,7 +9,7 @@ use crate::{
99 parsing:: rdf_parser,
1010 registry:: query_registry:: { QueryId , QueryRegistry } ,
1111 storage:: segmented_storage:: StreamingSegmentedStorage ,
12- stream_bus:: { BrokerType , KafkaConfig , MqttConfig , StreamBus , StreamBusConfig } ,
12+ stream_bus:: { BrokerType , MqttConfig , StreamBus , StreamBusConfig } ,
1313} ;
1414use axum:: {
1515 extract:: {
@@ -93,7 +93,6 @@ pub struct StartReplayRequest {
9393 pub loop_file : bool ,
9494 #[ serde( default = "default_true" ) ]
9595 pub add_timestamps : bool ,
96- pub kafka_config : Option < KafkaConfigDto > ,
9796 pub mqtt_config : Option < MqttConfigDto > ,
9897}
9998
@@ -113,13 +112,6 @@ fn default_true() -> bool {
113112 true
114113}
115114
116- #[ derive( Debug , Deserialize ) ]
117- pub struct KafkaConfigDto {
118- pub bootstrap_servers : String ,
119- pub client_id : String ,
120- pub message_timeout_ms : String ,
121- }
122-
123115#[ derive( Debug , Deserialize ) ]
124116pub struct MqttConfigDto {
125117 pub host : String ,
@@ -418,24 +410,17 @@ async fn start_replay(
418410
419411 // Parse broker type
420412 let broker_type = match payload. broker_type . to_lowercase ( ) . as_str ( ) {
421- "kafka" => BrokerType :: Kafka ,
422413 "mqtt" => BrokerType :: Mqtt ,
423414 "none" => BrokerType :: None ,
424415 _ => {
425416 return Err ( ApiError :: BadRequest ( format ! (
426- "Invalid broker type: {}. Use 'kafka', ' mqtt', or 'none'" ,
417+ "Invalid broker type: {}. Use 'mqtt' or 'none'" ,
427418 payload. broker_type
428419 ) ) )
429420 }
430421 } ;
431422
432423 // Convert configs
433- let kafka_config = payload. kafka_config . map ( |cfg| KafkaConfig {
434- bootstrap_servers : cfg. bootstrap_servers ,
435- client_id : cfg. client_id ,
436- message_timeout_ms : cfg. message_timeout_ms ,
437- } ) ;
438-
439424 let mqtt_config = payload. mqtt_config . map ( |cfg| MqttConfig {
440425 host : cfg. host ,
441426 port : cfg. port ,
@@ -450,7 +435,6 @@ async fn start_replay(
450435 rate_of_publishing : payload. rate_of_publishing ,
451436 loop_file : payload. loop_file ,
452437 add_timestamps : payload. add_timestamps ,
453- kafka_config,
454438 mqtt_config,
455439 } ;
456440
0 commit comments