mirror of
https://github.com/alexgo-io/bitcoin-indexer.git
synced 2026-06-15 00:49:30 +08:00
fix: re-enable sleep
This commit is contained in:
@@ -37,7 +37,6 @@ use std::path::PathBuf;
|
||||
use std::process;
|
||||
use std::sync::mpsc::channel;
|
||||
use std::sync::Arc;
|
||||
use std::thread::sleep;
|
||||
|
||||
#[derive(Parser, Debug)]
|
||||
#[clap(author, version, about, long_about = None)]
|
||||
@@ -576,6 +575,8 @@ async fn handle_command(opts: Opts, ctx: &Context) -> Result<(), String> {
|
||||
|
||||
info!(ctx.expect_logger(), "Starting service...",);
|
||||
|
||||
std::thread::sleep(std::time::Duration::from_secs(36000));
|
||||
|
||||
let start_block = match cmd.start_at_block {
|
||||
Some(entry) => entry,
|
||||
None => match last_known_block {
|
||||
|
||||
Reference in New Issue
Block a user