@@ -24,7 +24,6 @@ const LINEAR_REGRESSION_DUAL_POLICY: &'static str = "dual_policy.json";
2424const LINEAR_REGRESSION_TRIPLE_POLICY : & ' static str = "triple_policy_1.json" ;
2525const LINEAR_REGRESSION_PARALLEL_POLICY : & ' static str = "dual_parallel_policy.json" ;
2626const INTERSECTION_SET_SUM_TRIPLE_POLICY : & ' static str = "triple_policy_2.json" ;
27- const PERMUTED_INTERSECTION_SET_SUM_TRIPLE_POLICY : & ' static str = "triple_policy_3.json" ;
2827const STRING_EDIT_DISTANCE_TRIPLE_POLICY : & ' static str = "triple_policy_4.json" ;
2928const STRING_EDIT_DISTANCE_QUADRUPLE_POLICY : & ' static str = "quadruple_policy.json" ;
3029
@@ -280,8 +279,7 @@ async fn veracruz_phase4_linear_regression_two_clients_parallel() {
280279 info ! ( "### program provider read binary." ) ;
281280 let program_data = read_local_file ( prog_path) . unwrap ( ) ;
282281 info ! ( "### program provider send binary." ) ;
283- client
284- . write_file ( "/program/linear-regression.wasm" , & program_data) ?;
282+ client. write_file ( "/program/linear-regression.wasm" , & program_data) ?;
285283 Result :: < ( ) > :: Ok ( ( ) )
286284 } ;
287285 let data_provider_handle = async {
@@ -297,11 +295,9 @@ async fn veracruz_phase4_linear_regression_two_clients_parallel() {
297295 info ! ( "### data provider read input." ) ;
298296 let data = read_local_file ( & data_filename) . unwrap ( ) ;
299297 info ! ( "### data provider send input." ) ;
300- client
301- . write_file ( "/input/linear-regression.dat" , & data) ?;
298+ client. write_file ( "/input/linear-regression.dat" , & data) ?;
302299 info ! ( "### data provider read result." ) ;
303- client
304- . request_compute ( "/program/linear-regression.wasm" ) ?;
300+ client. request_compute ( "/program/linear-regression.wasm" ) ?;
305301 client. read_file ( "/output/linear-regression.dat" ) ?;
306302 info ! ( "### data provider request shutdown." ) ;
307303 client. request_shutdown ( ) ?;
@@ -366,9 +362,7 @@ impl TestExecutor {
366362 // start the proxy attestation server
367363 proxy_attestation_setup ( policy. proxy_attestation_server_url ( ) . clone ( ) ) ;
368364
369- Ok ( TestExecutor {
370- policy_json,
371- } )
365+ Ok ( TestExecutor { policy_json } )
372366 }
373367
374368 /// Execute this test. Clients collectively execute as a block, driven by the `events`, in
@@ -408,11 +402,10 @@ impl TestExecutor {
408402 . ok_or ( anyhow ! ( "cannot find client of index {}" , client_index) ) ?;
409403 info ! ( "Process client{} event {:?}." , client_index, event) ;
410404 let time_init = Instant :: now ( ) ;
411- Self :: process_event ( & mut client, & event)
412- . map_err ( |e| {
413- error ! ( "Client of index {}: {:?}" , client_index, e) ;
414- e
415- } ) ?;
405+ Self :: process_event ( & mut client, & event) . map_err ( |e| {
406+ error ! ( "Client of index {}: {:?}" , client_index, e) ;
407+ e
408+ } ) ?;
416409 info ! (
417410 "The event {:?} finished in {:?}." ,
418411 event,
0 commit comments