From 10d24b5cd634e849799a563240b5ebfb017ca976 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Sat, 4 Mar 2023 21:44:59 +0100 Subject: [PATCH] chore: spawn cache task as critical (#1633) --- crates/rpc/rpc/src/eth/cache.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/rpc/rpc/src/eth/cache.rs b/crates/rpc/rpc/src/eth/cache.rs index 3990e9dc35..71706dc7cc 100644 --- a/crates/rpc/rpc/src/eth/cache.rs +++ b/crates/rpc/rpc/src/eth/cache.rs @@ -108,7 +108,7 @@ impl EthStateCache { let EthStateCacheConfig { max_block_bytes, max_env_bytes } = config; let (this, service) = Self::create(client, executor.clone(), max_block_bytes, max_env_bytes); - executor.spawn(Box::pin(service)); + executor.spawn_critical("eth state cache", Box::pin(service)); this }