fix: remove unnecessary println!
Some checks are pending
Conventional Commits / Conventional Commits (push) Waiting to run

Fix: #11
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
This commit is contained in:
Christina Sørensen 2024-09-05 08:21:35 +02:00
parent eade90b797
commit 6e479e7ad2
Signed by: cafkafk
GPG key ID: 26C542FD97F965CE
2 changed files with 2 additions and 3 deletions

View file

@ -115,7 +115,7 @@ async fn main() -> io::Result<()> {
let client = client.clone(); let client = client.clone();
let domain = domain.clone(); let domain = domain.clone();
tokio::spawn(async move { tokio::spawn(async move {
log::info!("connecting to {domain} {domain_addr:#?} for {hash}"); log::trace!("connecting to {domain} {domain_addr:#?} for {hash}");
net::nar_exists(client, &domain, &hash, SLIDE).await net::nar_exists(client, &domain, &hash, SLIDE).await
}) })
}) })
@ -131,7 +131,6 @@ async fn main() -> io::Result<()> {
"Checked {count} packages in {} seconds", "Checked {count} packages in {} seconds",
network_time.elapsed().as_secs() network_time.elapsed().as_secs()
); );
println!("");
println!( println!(
"Found {:#?}/{} ({:.2}%) in cache", "Found {:#?}/{} ({:.2}%) in cache",
sum, sum,

View file

@ -33,7 +33,7 @@ pub fn get_requisites(host: &str, config_dir: &str) -> String {
serde_json::from_str(&String::from_utf8(get_drv_path.stdout).unwrap()).unwrap(); serde_json::from_str(&String::from_utf8(get_drv_path.stdout).unwrap()).unwrap();
let drv_path = drv_path_json[0]["drvPath"].clone(); let drv_path = drv_path_json[0]["drvPath"].clone();
println!("drv_path: {}", &drv_path); log::debug!("drv_path: {}", &drv_path);
let get_drv_requisites = Command::new("nix-store") let get_drv_requisites = Command::new("nix-store")
.args(["--query", "--requisites", drv_path.as_str().unwrap()]) .args(["--query", "--requisites", drv_path.as_str().unwrap()])