File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -225,6 +225,13 @@ pub struct ExportKeyshareCmd {
225
225
226
226
impl StartCmd {
227
227
async fn run ( self ) -> anyhow:: Result < ( ) > {
228
+ let root_runtime = tokio:: runtime:: Builder :: new_multi_thread ( )
229
+ . enable_all ( )
230
+ . worker_threads ( 1 )
231
+ . build ( ) ?;
232
+
233
+ let _tokio_enter_guard = root_runtime. enter ( ) ;
234
+
228
235
// Load configuration and initialize persistent secrets
229
236
let home_dir = PathBuf :: from ( self . home_dir . clone ( ) ) ;
230
237
let config = load_config_file ( & home_dir) ?;
@@ -248,11 +255,6 @@ impl StartCmd {
248
255
let ( debug_request_sender, _) = tokio:: sync:: broadcast:: channel ( 10 ) ;
249
256
let root_task_handle = Arc :: new ( OnceLock :: new ( ) ) ;
250
257
251
- let root_runtime = tokio:: runtime:: Builder :: new_multi_thread ( )
252
- . enable_all ( )
253
- . worker_threads ( 1 )
254
- . build ( ) ?;
255
-
256
258
let ( protocol_state_sender, protocol_state_receiver) =
257
259
watch:: channel ( ProtocolContractState :: NotInitialized ) ;
258
260
You can’t perform that action at this time.
0 commit comments