@@ -64,7 +64,7 @@ pub fn connect_to_new_target(axon_section: &mut AxonSection) -> Result<(), Ainar
6464 let selected_block_option;
6565
6666 {
67- let model_handler = CLUSTER_HANDLER . read ( ) . expect ( "mutex poisoned" ) ;
67+ let model_handler = MODEL_HANDLER . read ( ) . expect ( "mutex poisoned" ) ;
6868
6969 // get source-block
7070 source_block = model_handler. get_block (
@@ -109,7 +109,7 @@ pub fn connect_to_new_target(axon_section: &mut AxonSection) -> Result<(), Ainar
109109
110110 // create new block if no existing block is available
111111 if target_information. is_output {
112- let mut model_handler = CLUSTER_HANDLER . write ( ) . expect ( "mutex poisoned" ) ;
112+ let mut model_handler = MODEL_HANDLER . write ( ) . expect ( "mutex poisoned" ) ;
113113 let output_block_mutex = Arc :: new ( Mutex :: new ( OutputBlock :: new (
114114 & target_information. hexagon_uuid ,
115115 & axon_section. model_uuid ,
@@ -124,7 +124,7 @@ pub fn connect_to_new_target(axon_section: &mut AxonSection) -> Result<(), Ainar
124124 return Ok ( ( ) ) ;
125125 }
126126 } else {
127- let mut model_handler = CLUSTER_HANDLER . write ( ) . expect ( "mutex poisoned" ) ;
127+ let mut model_handler = MODEL_HANDLER . write ( ) . expect ( "mutex poisoned" ) ;
128128 let core_block_mutex = Arc :: new ( Mutex :: new ( CoreBlock :: new (
129129 & target_information. hexagon_uuid ,
130130 & axon_section. model_uuid ,
@@ -210,7 +210,7 @@ fn check_axon_setion(axon_section: &mut AxonSection) -> Result<(), AinariError>
210210/// * `Ok(TargetInformation)` containing information about the target hexagon
211211/// * `Err(AinariError)` if any step fails
212212fn get_target_hexagon ( axon_section : & mut AxonSection ) -> Result < TargetInformation , AinariError > {
213- let mut model_handler = CLUSTER_HANDLER . write ( ) . expect ( "mutex poisoned" ) ;
213+ let mut model_handler = MODEL_HANDLER . write ( ) . expect ( "mutex poisoned" ) ;
214214 let mut target_information = TargetInformation :: default ( ) ;
215215 let model_link = model_handler. get_model_mut ( & axon_section. model_uuid ) ?;
216216
@@ -301,7 +301,7 @@ mod tests {
301301 key2: 2,2,2;"
302302 . to_string ( ) ;
303303
304- let mut root_handler = CLUSTER_HANDLER . write ( ) . expect ( "mutex poisoned" ) ;
304+ let mut root_handler = MODEL_HANDLER . write ( ) . expect ( "mutex poisoned" ) ;
305305 root_handler. models . clear ( ) ;
306306 let mut parsed_model = parse_model_template ( & model_name, & template) . unwrap ( ) ;
307307 parsed_model. uuid = model_uuid;
0 commit comments