@@ -346,7 +346,9 @@ fn create_tce_config(
346346 // The address book is only required to contain the existing nodes.
347347 let joining_running_session = !nodes. contains_key ( & secret_key. public_key ( ) ) ;
348348
349- let mut tce_config = tashi_consensus_engine:: Config :: new ( secret_key)
349+ let mut tce_config = tashi_consensus_engine:: Config :: new ( secret_key) ;
350+
351+ tce_config
350352 . initial_nodes ( nodes)
351353 . enable_hole_punching ( false )
352354 // TODO: we can dispatch messages before they come to consensus
@@ -356,12 +358,12 @@ fn create_tce_config(
356358 . fallen_behind_kick_seconds ( None ) ;
357359
358360 if let Some ( cert_path) = & config. cluster_cert {
359- tce_config = tce_config . tls_cert_chain ( Certificate :: load_chain_from ( cert_path) ?) ;
361+ tce_config. tls_cert_chain ( Certificate :: load_chain_from ( cert_path) ?) ;
360362 }
361363
362364 let roots = if let Some ( root_cert_path) = & config. cluster_root_cert {
363365 let roots = Arc :: new ( RootCertificates :: read_from ( root_cert_path) ?) ;
364- tce_config = tce_config . tls_roots ( roots. clone ( ) ) ;
366+ tce_config. tls_roots ( roots. clone ( ) ) ;
365367 Some ( roots)
366368 } else {
367369 None
@@ -370,7 +372,7 @@ fn create_tce_config(
370372 let ( add_nodes_tx, add_nodes_rx) = mpsc:: unbounded_channel ( ) ;
371373
372374 if config. cluster_accept_peer_with_cert {
373- tce_config = tce_config . on_unknown_connection ( move |addr, key, certs| {
375+ tce_config. on_unknown_connection ( move |addr, key, certs| {
374376 // Certificate chain has already been verified by TCE at this point.
375377
376378 add_nodes_tx
0 commit comments