chore: spawn cache task as critical (#1633)

This commit is contained in:
Matthias Seitz
2023-03-04 21:44:59 +01:00
committed by GitHub
parent 0e9d18d4e9
commit 10d24b5cd6

View File

@ -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
}