d062524d32
* wip: sending with single client * tag packets to measure latency * constantly logging rates * concurrency * adjusting some values * write results to files upon completion
38 lines
967 B
Rust
38 lines
967 B
Rust
// Copyright 2024 - Nym Technologies SA <contact@nymtech.net>
|
|
// SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
#![warn(clippy::expect_used)]
|
|
#![warn(clippy::unwrap_used)]
|
|
|
|
use crate::cli::Cli;
|
|
use clap::{crate_name, crate_version, Parser};
|
|
use nym_bin_common::logging::maybe_print_banner;
|
|
use nym_config::defaults::setup_env;
|
|
|
|
mod cli;
|
|
pub(crate) mod config;
|
|
mod env;
|
|
pub(crate) mod error;
|
|
mod logging;
|
|
pub(crate) mod node;
|
|
pub(crate) mod throughput_tester;
|
|
pub(crate) mod wireguard;
|
|
|
|
fn main() -> anyhow::Result<()> {
|
|
// std::env::set_var(
|
|
// "RUST_LOG",
|
|
// "trace,handlebars=warn,tendermint_rpc=warn,h2=warn,hyper=warn,rustls=warn,reqwest=warn,tungstenite=warn,async_tungstenite=warn,tokio_util=warn,tokio_tungstenite=warn,tokio-util=warn",
|
|
// );
|
|
|
|
let cli = Cli::parse();
|
|
setup_env(cli.config_env_file.as_ref());
|
|
|
|
if !cli.no_banner {
|
|
maybe_print_banner(crate_name!(), crate_version!());
|
|
}
|
|
|
|
cli.execute()?;
|
|
|
|
Ok(())
|
|
}
|