wip
This commit is contained in:
committed by
Jon Häggblad
parent
8f24e8f208
commit
13fa2119fc
@@ -13,10 +13,10 @@ mod rewarder;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> anyhow::Result<()> {
|
||||
std::env::set_var(
|
||||
"RUST_LOG",
|
||||
"debug,tendermint_rpc=warn,h2=warn,hyper=warn,rustls=warn,reqwest=warn,tungstenite=warn,async_tungstenite=warn",
|
||||
);
|
||||
// std::env::set_var(
|
||||
// "RUST_LOG",
|
||||
// "debug,tendermint_rpc=warn,h2=warn,hyper=warn,rustls=warn,reqwest=warn,tungstenite=warn,async_tungstenite=warn",
|
||||
// );
|
||||
|
||||
let args = Cli::parse();
|
||||
setup_env(args.config_env_file.as_ref());
|
||||
|
||||
@@ -34,7 +34,17 @@ impl Rewarder {
|
||||
|
||||
self.nyxd_scraper.start().await?;
|
||||
|
||||
tokio::time::sleep(Duration::from_secs(30)).await;
|
||||
tokio::time::sleep(Duration::from_secs(3000)).await;
|
||||
|
||||
loop {
|
||||
tokio::select! {
|
||||
biased;
|
||||
interrupted = task_manager.catch_interrupt() => {
|
||||
todo!()
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
task 1:
|
||||
|
||||
Reference in New Issue
Block a user