diff --git a/src/serve/bubble.rs b/src/serve/bubble.rs index e919a74..4b03962 100644 --- a/src/serve/bubble.rs +++ b/src/serve/bubble.rs @@ -108,7 +108,7 @@ impl BubbleChart { if let Some(Some(local_bubble)) = local_bubble { vertex.mass += 0.1 * local_bubble.len() as f32; - vertex.value += 1 * local_bubble.len(); + vertex.value += local_bubble.len(); for instance in local_bubble { if let Some(other_domain) = instance.as_str() { if let Ok(mut other_vertex) = self.get_vertex(other_domain).await { diff --git a/src/serve/router.rs b/src/serve/router.rs index 8190837..fd6cf03 100644 --- a/src/serve/router.rs +++ b/src/serve/router.rs @@ -34,7 +34,7 @@ async fn route_crawl_domain( tracing::info!("starting new crawl from {}", params.domain); let mut chart = BubbleChart::new(db.clone()); match chart.chart_local_bubble(¶ms.domain).await { - Ok(()) => Json((chart.vertices.values().into_iter().cloned().collect(), chart.arcs)), + Ok(()) => Json((chart.vertices.values().cloned().collect(), chart.arcs)), Err(e) => { tracing::error!("could not chart requested domain: {}", e); Json((Vec::new(), Vec::new()))