fix: disable sleep

This commit is contained in:
Ludo Galabru
2023-07-31 22:17:35 +02:00
parent e575a4f26b
commit 41ecacee0e

View File

@@ -67,22 +67,22 @@ impl Service {
// std::thread::sleep(std::time::Duration::from_secs(3600000));
// Force rebuild
{
let blocks_db = open_readwrite_hord_db_conn_rocks_db(
&self.config.expected_cache_path(),
&self.ctx,
)?;
let inscriptions_db_conn_rw =
open_readwrite_hord_db_conn(&self.config.expected_cache_path(), &self.ctx)?;
// {
// let blocks_db = open_readwrite_hord_db_conn_rocks_db(
// &self.config.expected_cache_path(),
// &self.ctx,
// )?;
// let inscriptions_db_conn_rw =
// open_readwrite_hord_db_conn(&self.config.expected_cache_path(), &self.ctx)?;
delete_data_in_hord_db(
767430,
800000,
&blocks_db,
&inscriptions_db_conn_rw,
&self.ctx,
)?;
}
// delete_data_in_hord_db(
// 767430,
// 800000,
// &blocks_db,
// &inscriptions_db_conn_rw,
// &self.ctx,
// )?;
// }
// rebuild_rocks_db(&self.config, 767400, 767429, 767400, None, &self.ctx).await?;