@@ -188,12 +188,7 @@ pub fn service_monitor_client_config(
188188
189189 // there is one mapper instance per cloud per thin-edge instance, perhaps we should use some
190190 // predefined topic id instead of trying to derive it from current device?
191- let entity_topic_id: EntityTopicId = tedge_config
192- . mqtt
193- . device_topic_id
194- . clone ( )
195- . parse ( )
196- . context ( "Invalid device_topic_id" ) ?;
191+ let entity_topic_id: EntityTopicId = tedge_config. mqtt . device_topic_id . clone ( ) ;
197192 let prefix = & c8y_config. bridge . topic_prefix ;
198193
199194 let mapper_service_topic_id = entity_topic_id
@@ -356,12 +351,7 @@ fn core_mqtt_bridge_config(
356351
357352 // there is one mapper instance per cloud per thin-edge instance, perhaps we should use some
358353 // predefined topic id instead of trying to derive it from current device?
359- let entity_topic_id: EntityTopicId = tedge_config
360- . mqtt
361- . device_topic_id
362- . clone ( )
363- . parse ( )
364- . context ( "Invalid device_topic_id" ) ?;
354+ let entity_topic_id: EntityTopicId = tedge_config. mqtt . device_topic_id . clone ( ) ;
365355
366356 let mapper_service_topic_id = entity_topic_id
367357 . default_service_for_device ( c8y_mapper_name)
@@ -464,12 +454,7 @@ fn mqtt_service_bridge_config(
464454 "tedge-mapper-bridge-{}" ,
465455 c8y_config. mqtt_service. topic_prefix. as_str( )
466456 ) ;
467- let device_topic_id: EntityTopicId = tedge_config
468- . mqtt
469- . device_topic_id
470- . clone ( )
471- . parse ( )
472- . context ( "Invalid device_topic_id" ) ?;
457+ let device_topic_id: EntityTopicId = tedge_config. mqtt . device_topic_id . clone ( ) ;
473458
474459 let bridge_health_topic =
475460 service_health_topic ( & mqtt_schema, & device_topic_id, & bridge_service_name) ;
0 commit comments