diff --git a/zebrad/src/commands/start.rs b/zebrad/src/commands/start.rs index 0a37922d3d..887f1cc024 100644 --- a/zebrad/src/commands/start.rs +++ b/zebrad/src/commands/start.rs @@ -274,7 +274,7 @@ impl StartCmd { #[cfg(not(feature = "indexer-rpcs"))] // Spawn a dummy indexer rpc task which doesn't do anything and never finishes. - let indexer_rpc_task_handle: tokio::task::JoinHandle> = + let indexer_rpc_task_handle: tokio::task::JoinHandle> = tokio::spawn(std::future::pending().in_current_span()); // Start concurrent tasks which don't add load to other tasks