pub async fn ensure_ready(
        mut self,
        recovery_pool: &ConnectionPool<Core>,
        stop_receiver: &watch::Receiver<bool>,
    ) -> Result<(RocksdbStorage, InitStrategy), OrStopped> {
        let init_strategy = self
            .0
            .ensure_ready(
                recovery_pool,
                RocksdbStorage::DESIRED_LOG_CHUNK_SIZE,
                stop_receiver,
            )
            .await?;
        Ok((self.0, init_strategy))
    }
Ensures that the storage is ready to process L1 batches (i.e., has completed snapshot recovery).

# Return value

Returns a flag indicating whether snapshot recovery was performed.

# Errors

Returns I/O RocksDB and Postgres errors.
core/lib/state/src/rocksdb/mod.rs