This is an automated email from the git hooks/post-receive script.
dgoulet pushed a commit to branch main in repository fallback-scripts.
The following commit(s) were added to refs/heads/main by this push: new 9c12605 Fixes to latest arti 9c12605 is described below
commit 9c126058444c97db37e8f10bdd49838c1e668688 Author: David Goulet dgoulet@torproject.org AuthorDate: Fri Mar 25 09:03:47 2022 -0400
Fixes to latest arti
Signed-off-by: David Goulet dgoulet@torproject.org --- src/main.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/src/main.rs b/src/main.rs index 7b85d04..8a7b959 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,8 +4,6 @@ use rand::seq::SliceRandom; use std::fs::File; use std::io::{BufWriter, Write}; use tokio_crate as tokio; -use tor_rtcompat::tokio::TokioNativeTlsRuntime; - use arti_client::{self, TorClientConfig}; use tor_netdir; use tor_netdoc::doc::netstatus::RelayFlags; @@ -96,14 +94,13 @@ fn write_header_to_file(writer: &mut BufWriter<&File>) -> Result<()> { #[tokio::main] async fn main() -> Result<()> { let config = TorClientConfig::default(); - let rt: TokioNativeTlsRuntime = tokio_crate::runtime::Handle::current().into();
println!("[+] Fetching onionoo relays..."); let onionoo_relays_fprs = onionoo::get_relay_fprs_from_onionoo().await?;
println!("[+] Bootstrapping to the Tor network..."); - let arti_client = arti_client::TorClient::create_bootstrapped(rt, config).await?; - let netdir = arti_client.dirmgr().netdir()?; + let arti_client = arti_client::TorClient::create_bootstrapped(config).await?; + let netdir = arti_client.dirmgr().latest_netdir().unwrap();
println!("[+] Cross-referencing relays between Onionoo and Tor consensus...");
tor-commits@lists.torproject.org