mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-07 23:21:21 +00:00
22 lines
387 B
Rust
22 lines
387 B
Rust
|
use anyhow::Result;
|
||
|
|
||
|
mod config;
|
||
|
|
||
|
#[tokio::main]
|
||
|
async fn main() -> Result<()> {
|
||
|
let config = config::Config::from_env()?;
|
||
|
|
||
|
let report = interop_tests::run_test(
|
||
|
&config.transport,
|
||
|
&config.ip,
|
||
|
config.is_dialer,
|
||
|
config.test_timeout,
|
||
|
&config.redis_addr,
|
||
|
)
|
||
|
.await?;
|
||
|
|
||
|
println!("{}", serde_json::to_string(&report)?);
|
||
|
|
||
|
Ok(())
|
||
|
}
|