remove unused component for local scraping
This commit is contained in:
@@ -10,7 +10,7 @@ export NODE_STATUS_API_TESTRUN_REFRESH_INTERVAL=120
|
||||
# For TESTING only. NOT used in any other environment
|
||||
export NODE_STATUS_API_AGENT_KEY_LIST="H4z8kx5Kkf5JMQHhxaW1MwYndjKCDHC7HsVhHTFfBZ4J"
|
||||
|
||||
export ENVIRONMENT=${ENVIRONMENT:-"sandbox"}
|
||||
export ENVIRONMENT=${ENVIRONMENT:-"mainnet"}
|
||||
|
||||
script_dir=$(dirname $(realpath "$0"))
|
||||
monorepo_root=$(realpath "${script_dir}/../..")
|
||||
|
||||
@@ -73,10 +73,6 @@ pub(crate) struct Cli {
|
||||
#[arg(value_delimiter = ',')]
|
||||
pub(crate) agent_key_list: Vec<String>,
|
||||
|
||||
/// https://github.com/ipinfo/rust
|
||||
#[clap(long, env = "IPINFO_API_TOKEN")]
|
||||
pub(crate) ipinfo_api_token: String,
|
||||
|
||||
#[clap(
|
||||
long,
|
||||
default_value_t = 40,
|
||||
|
||||
@@ -27,24 +27,8 @@ async fn main() -> anyhow::Result<()> {
|
||||
tracing::debug!("Using config:\n{:#?}", args);
|
||||
|
||||
let storage = db::Storage::init(connection_url).await?;
|
||||
let db_pool = storage.pool_owned();
|
||||
let args_clone = args.clone();
|
||||
|
||||
tokio::spawn(async move {
|
||||
monitor::spawn_in_background(
|
||||
db_pool,
|
||||
args_clone.nym_api_client_timeout,
|
||||
args_clone.nyxd_addr,
|
||||
args_clone.monitor_refresh_interval,
|
||||
args_clone.ipinfo_api_token,
|
||||
args_clone.geodata_ttl,
|
||||
)
|
||||
.await;
|
||||
tracing::info!("Started monitor task");
|
||||
});
|
||||
|
||||
testruns::spawn(storage.pool_owned(), args.testruns_refresh_interval).await;
|
||||
|
||||
let db_pool_scraper = storage.pool_owned();
|
||||
tokio::spawn(async move {
|
||||
node_scraper::spawn_in_background(db_pool_scraper, args_clone.nym_api_client_timeout).await;
|
||||
|
||||
Reference in New Issue
Block a user