File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 1- use crate :: zk_circuits_handler:: { euclid:: EuclidHandler , euclidV2:: EuclidV2Handler , CircuitsHandler } ;
1+ use crate :: zk_circuits_handler:: {
2+ euclid:: EuclidHandler , euclidV2:: EuclidV2Handler , CircuitsHandler ,
3+ } ;
24use anyhow:: { anyhow, Result } ;
35use async_trait:: async_trait;
46use scroll_proving_sdk:: {
@@ -181,10 +183,14 @@ impl LocalProver {
181183 // coordinator
182184 let config = self . config . circuits . get ( hard_fork_name) . unwrap ( ) ;
183185
184- Arc :: new ( match hard_fork_name {
185- "euclid" => Arc :: new ( Mutex :: new ( EuclidHandler :: new ( & config. workspace_path ) ) ) ,
186- "euclidV2" => Arc :: new ( Mutex :: new ( EuclidV2Handler :: new ( & config. workspace_path ) ) ) ,
186+ match hard_fork_name {
187+ "euclid" => Arc :: new ( Arc :: new ( Mutex :: new ( EuclidHandler :: new (
188+ & config. workspace_path ,
189+ ) ) ) ) as Arc < dyn CircuitsHandler > ,
190+ "euclidV2" => Arc :: new ( Arc :: new ( Mutex :: new ( EuclidV2Handler :: new (
191+ & config. workspace_path ,
192+ ) ) ) ) as Arc < dyn CircuitsHandler > ,
187193 _ => unreachable ! ( ) ,
188- } ) as Arc < dyn CircuitsHandler >
194+ }
189195 }
190196}
You can’t perform that action at this time.
0 commit comments