From f4b446aed6335b488e7e0b8a0901bf5b15d20833 Mon Sep 17 00:00:00 2001 From: dr-frmr Date: Wed, 17 Jul 2024 18:50:11 +0200 Subject: [PATCH] comment out prints --- kinode/packages/kns_indexer/kns_indexer/src/lib.rs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/kinode/packages/kns_indexer/kns_indexer/src/lib.rs b/kinode/packages/kns_indexer/kns_indexer/src/lib.rs index 74d4ef8c..e4c5845b 100644 --- a/kinode/packages/kns_indexer/kns_indexer/src/lib.rs +++ b/kinode/packages/kns_indexer/kns_indexer/src/lib.rs @@ -347,14 +347,14 @@ fn handle_log(our: &Address, state: &mut State, log: ð::Log) -> anyhow::Resul node.routers = vec![]; }; } - other => { - println!("unknown note: {other}"); + _other => { + // println!("unknown note: {other}"); } } node_name } - _ => { - println!("unknown log: {log:?}"); + _log => { + // println!("unknown log: {log:?}"); return Ok(()); } }; @@ -371,7 +371,6 @@ fn handle_log(our: &Address, state: &mut State, log: ð::Log) -> anyhow::Resul && ((!node_info.ips.is_empty() && !node_info.ports.is_empty()) || node_info.routers.len() > 0) { - println!("sending update for {node_name}: {node_info:?}"); return Request::new() .target((&our.node, "net", "distro", "sys")) .body(rmp_serde::to_vec(&net::NetAction::KnsUpdate( @@ -380,8 +379,6 @@ fn handle_log(our: &Address, state: &mut State, log: ð::Log) -> anyhow::Resul .send(); } } - - println!("**not** sending update for {node_name}"); Ok(()) }