mirror of
https://github.com/alexgo-io/bitcoin-indexer.git
synced 2026-01-12 22:43:06 +08:00
fix: disable sleep
This commit is contained in:
@@ -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?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user